|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface DataType
A data type.
| Method Summary | |
|---|---|
java.lang.String |
asString()
Get the stable string representation that is used to build this data type. |
int |
compare(java.lang.Object a,
java.lang.Object b)
Compare two keys. |
int |
getMaxLength(java.lang.Object obj)
Get the maximum length in bytes used to store an object. |
int |
getMemory(java.lang.Object obj)
Estimate the used memory in bytes. |
java.lang.Object |
read(java.nio.ByteBuffer buff)
Read an object. |
void |
write(java.nio.ByteBuffer buff,
java.lang.Object obj)
Write the object. |
| Method Detail |
|---|
int compare(java.lang.Object a,
java.lang.Object b)
a - the first keyb - the second key
int getMaxLength(java.lang.Object obj)
obj - the object
int getMemory(java.lang.Object obj)
obj - the object
void write(java.nio.ByteBuffer buff,
java.lang.Object obj)
buff - the target bufferobj - the valuejava.lang.Object read(java.nio.ByteBuffer buff)
buff - the source buffer
java.lang.String asString()
To avoid conflict with the default factory, the returned string should start with the package name of the type factory.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||