|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.mvstore.db.ValueDataType
public class ValueDataType
A row type.
Constructor Summary | |
---|---|
ValueDataType(CompareMode compareMode,
DataHandler handler,
int[] sortTypes)
|
Method Summary | |
---|---|
int |
compare(java.lang.Object a,
java.lang.Object b)
Compare two keys. |
boolean |
equals(java.lang.Object obj)
|
int |
getMemory(java.lang.Object obj)
Estimate the used memory in bytes. |
int |
hashCode()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueDataType(CompareMode compareMode, DataHandler handler, int[] sortTypes)
Method Detail |
---|
public int compare(java.lang.Object a, java.lang.Object b)
DataType
compare
in interface DataType
a
- the first keyb
- the second key
public int getMemory(java.lang.Object obj)
DataType
getMemory
in interface DataType
obj
- the object
public void read(java.nio.ByteBuffer buff, java.lang.Object[] obj, int len, boolean key)
DataType
read
in interface DataType
buff
- the target bufferobj
- the objectslen
- the number of objects to readkey
- whether the objects are keyspublic void write(WriteBuffer buff, java.lang.Object[] obj, int len, boolean key)
DataType
write
in interface DataType
buff
- the target bufferobj
- the objectslen
- the number of objects to writekey
- whether the objects are keyspublic java.lang.Object read(java.nio.ByteBuffer buff)
DataType
read
in interface DataType
buff
- the source buffer
public void write(WriteBuffer buff, java.lang.Object obj)
DataType
write
in interface DataType
buff
- the target bufferobj
- the valuepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |