Modifier and Type | Field and Description |
---|---|
static StringDataType |
INSTANCE |
Constructor and Description |
---|
StringDataType() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object a,
Object b)
Compare two keys.
|
int |
getMemory(Object obj)
Estimate the used memory in bytes.
|
String |
read(ByteBuffer buff)
Read an object.
|
void |
read(ByteBuffer buff,
Object[] obj,
int len,
boolean key)
Read a list of objects.
|
void |
write(WriteBuffer buff,
Object obj)
Write an object.
|
void |
write(WriteBuffer buff,
Object[] obj,
int len,
boolean key)
Write a list of objects.
|
public static final StringDataType INSTANCE
public int compare(Object a, Object b)
DataType
public int getMemory(Object obj)
DataType
public void read(ByteBuffer buff, Object[] obj, int len, boolean key)
DataType
public void write(WriteBuffer buff, Object[] obj, int len, boolean key)
DataType
public String read(ByteBuffer buff)
DataType
public void write(WriteBuffer buff, Object obj)
DataType
Copyright © 2020 JBoss by Red Hat. All rights reserved.