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