Clownfish::Blob - Immutable buffer holding arbitrary bytes.
my $blob = Clownfish::Blob->new($byte_string); my $byte_string = $blob->to_perl;
my $blob = Clownfish::Blob->new($byte_string);
Create a Blob containing the passed-in bytes.
my $int = $blob->get_size();
Return the number of bytes held by the Blob.
my $int = $blob->compare_to($other);
Indicate whether one Blob is less than,
or greater than another.
The byte contents of the Blobs are compared lexicographically.
Throws an exception if
other is not a Blob.
Returns: 0 if the Blobs are equal,
a negative number if
self is less than
and a positive number if
self is greater than
my $result = $blob->clone();
Return a clone of the object.
Clownfish::Blob isa Clownfish::Obj.
Copyright © 2010-2015 The Apache Software Foundation, Licensed under the
Apache License, Version 2.0.
Apache Lucy, Lucy, Apache, the Apache feather logo, and the Apache Lucy project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.