public final class ShortBlob extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ShortBlob>
ShortBlob
contains an array of bytes no longer than
DataTypeUtils.MAX_SHORT_BLOB_PROPERTY_LENGTH
. Unlike Blob
,
ShortBlobs
are indexed by the datastore and can therefore be
filtered and sorted on in queries. If your data is too large to fit
in a ShortBlob
use Blob
instead.Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
ShortBlob(byte[] bytes)
Construct a new
ShortBlob with the specified bytes. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ShortBlob other) |
boolean |
equals(java.lang.Object object)
Two
ShortBlob objects are considered equal if their contained
bytes match exactly. |
byte[] |
getBytes()
Return the bytes stored in this
ShortBlob . |
int |
hashCode() |
java.lang.String |
toString()
Simply prints the number of bytes contained in this
ShortBlob . |
public static final long serialVersionUID
public ShortBlob(byte[] bytes)
ShortBlob
with the specified bytes. This
blob cannot be modified after construction.public byte[] getBytes()
ShortBlob
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
ShortBlob
objects are considered equal if their contained
bytes match exactly.equals
in class java.lang.Object
public java.lang.String toString()
ShortBlob
.toString
in class java.lang.Object