Class ShortBlob
- java.lang.Object
-
- com.google.appengine.api.datastore.ShortBlob
-
- All Implemented Interfaces:
Serializable,Comparable<ShortBlob>
public final class ShortBlob extends Object implements Serializable, Comparable<ShortBlob>
ShortBlobcontains an array of bytes no longer thanDataTypeUtils.MAX_SHORT_BLOB_PROPERTY_LENGTH. UnlikeBlob,ShortBlobsare indexed by the datastore and can therefore be filtered and sorted on in queries. If your data is too large to fit in aShortBlobuseBlobinstead.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ShortBlob(byte[] bytes)Construct a newShortBlobwith the specified bytes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ShortBlob other)booleanequals(@Nullable Object object)TwoShortBlobobjects are considered equal if their contained bytes match exactly.byte[]getBytes()Return the bytes stored in thisShortBlob.inthashCode()StringtoString()Simply prints the number of bytes contained in thisShortBlob.
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBytes
public byte[] getBytes()
Return the bytes stored in thisShortBlob.
-
equals
public boolean equals(@Nullable Object object)
TwoShortBlobobjects are considered equal if their contained bytes match exactly.
-
toString
public String toString()
Simply prints the number of bytes contained in thisShortBlob.
-
compareTo
public int compareTo(ShortBlob other)
- Specified by:
compareToin interfaceComparable<ShortBlob>
-
-