| Modifier and Type | Field and Description |
|---|---|
static StringDataType |
INSTANCE |
| Constructor and Description |
|---|
StringDataType() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object a,
java.lang.Object b)
Compare two keys.
|
int |
getMemory(java.lang.Object obj)
Estimate the used memory in bytes.
|
java.lang.String |
read(java.nio.ByteBuffer buff)
Read an object.
|
void |
read(java.nio.ByteBuffer buff,
java.lang.Object[] obj,
int len,
boolean key)
Read a list of objects.
|
void |
write(WriteBuffer buff,
java.lang.Object obj)
Write an object.
|
void |
write(WriteBuffer buff,
java.lang.Object[] obj,
int len,
boolean key)
Write a list of objects.
|
public static final StringDataType INSTANCE
public int compare(java.lang.Object a,
java.lang.Object b)
DataTypepublic int getMemory(java.lang.Object obj)
DataTypepublic void read(java.nio.ByteBuffer buff,
java.lang.Object[] obj,
int len,
boolean key)
DataTypepublic void write(WriteBuffer buff, java.lang.Object[] obj, int len, boolean key)
DataTypepublic java.lang.String read(java.nio.ByteBuffer buff)
DataTypepublic void write(WriteBuffer buff, java.lang.Object obj)
DataType