Class StringDataType
- java.lang.Object
-
- org.dizitart.no2.mvstore.compat.v1.mvstore.type.StringDataType
-
-
Field Summary
Fields Modifier and Type Field Description static StringDataType
INSTANCE
-
Constructor Summary
Constructors Constructor Description StringDataType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
INSTANCE
public static final StringDataType INSTANCE
-
-
Method Detail
-
compare
public int compare(Object a, Object b)
Description copied from interface:DataType
Compare two keys.
-
getMemory
public int getMemory(Object obj)
Description copied from interface:DataType
Estimate the used memory in bytes.
-
read
public void read(ByteBuffer buff, Object[] obj, int len, boolean key)
Description copied from interface:DataType
Read a list of objects.
-
write
public void write(WriteBuffer buff, Object[] obj, int len, boolean key)
Description copied from interface:DataType
Write a list of objects.
-
read
public String read(ByteBuffer buff)
Description copied from interface:DataType
Read an object.
-
write
public void write(WriteBuffer buff, Object obj)
Description copied from interface:DataType
Write an object.
-
-