|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataType
A data type.
Method Summary | |
---|---|
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.Object |
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. |
Method Detail |
---|
int compare(java.lang.Object a, java.lang.Object b)
a
- the first keyb
- the second key
java.lang.UnsupportedOperationException
- if the type is not orderableint getMemory(java.lang.Object obj)
obj
- the object
void write(WriteBuffer buff, java.lang.Object obj)
buff
- the target bufferobj
- the valuevoid write(WriteBuffer buff, java.lang.Object[] obj, int len, boolean key)
buff
- the target bufferobj
- the objectslen
- the number of objects to writekey
- whether the objects are keysjava.lang.Object read(java.nio.ByteBuffer buff)
buff
- the source buffer
void read(java.nio.ByteBuffer buff, java.lang.Object[] obj, int len, boolean key)
buff
- the target bufferobj
- the objectslen
- the number of objects to readkey
- whether the objects are keys
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |