Package org.h2.mvstore.tx
Class Record.Type<K,V>
- java.lang.Object
-
- org.h2.mvstore.type.BasicDataType<Record<K,V>>
-
- org.h2.mvstore.tx.Record.Type<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description private TransactionStoretransactionStore
-
Constructor Summary
Constructors Constructor Description Type(TransactionStore transactionStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Record<K,V> aObj, Record<K,V> bObj)Compare two keys.Record<K,V>[]createStorage(int size)Create storage object of array type to hold valuesintgetMemory(Record<K,V> record)Calculates the amount of used memory in bytes.Record<K,V>read(java.nio.ByteBuffer buff)Read an object.voidwrite(WriteBuffer buff, Record<K,V> record)Write an object.-
Methods inherited from class org.h2.mvstore.type.BasicDataType
binarySearch, cast, equals, hashCode, isMemoryEstimationAllowed, read, write
-
-
-
-
Field Detail
-
transactionStore
private final TransactionStore transactionStore
-
-
Constructor Detail
-
Type
Type(TransactionStore transactionStore)
-
-
Method Detail
-
getMemory
public int getMemory(Record<K,V> record)
Description copied from interface:DataTypeCalculates the amount of used memory in bytes.
-
compare
public int compare(Record<K,V> aObj, Record<K,V> bObj)
Description copied from interface:DataTypeCompare two keys.
-
write
public void write(WriteBuffer buff, Record<K,V> record)
Description copied from interface:DataTypeWrite an object.
-
read
public Record<K,V> read(java.nio.ByteBuffer buff)
Description copied from interface:DataTypeRead an object.
-
-