|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.mvstore.type.ObjectType.LongType
public class ObjectType.LongType
The type for long objects.
| Field Summary | |
|---|---|
protected ObjectType |
base
|
protected int |
typeId
|
| Method Summary | |
|---|---|
java.lang.String |
asString()
Get the stable string representation that is used to build this data type. |
int |
compare(java.lang.Object aObj,
java.lang.Object bObj)
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. |
java.lang.Object |
read(java.nio.ByteBuffer buff,
int tag)
Read an object from the buffer. |
void |
write(java.nio.ByteBuffer buff,
java.lang.Object obj)
Write the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final ObjectType base
protected final int typeId
| Method Detail |
|---|
public int compare(java.lang.Object aObj,
java.lang.Object bObj)
DataType
compare in interface DataTypeaObj - the first keybObj - the second key
public int getMemory(java.lang.Object obj)
DataType
getMemory in interface DataTypeobj - the object
public int getMaxLength(java.lang.Object obj)
DataType
getMaxLength in interface DataTypeobj - the object
public void write(java.nio.ByteBuffer buff,
java.lang.Object obj)
DataType
write in interface DataTypebuff - the target bufferobj - the value
public java.lang.Object read(java.nio.ByteBuffer buff,
int tag)
buff - the buffertag - the first byte of the object (usually the type)
public final java.lang.Object read(java.nio.ByteBuffer buff)
DataType
read in interface DataTypebuff - the source buffer
public java.lang.String asString()
DataTypeTo avoid conflict with the default factory, the returned string should start with the package name of the type factory.
asString in interface DataType
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||