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 TransactionStore
transactionStore
-
Constructor Summary
Constructors Constructor Description Type(TransactionStore transactionStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(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 valuesint
getMemory(Record<K,V> record)
Calculates the amount of used memory in bytes.Record<K,V>
read(java.nio.ByteBuffer buff)
Read an object.void
write(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:DataType
Calculates the amount of used memory in bytes.
-
compare
public int compare(Record<K,V> aObj, Record<K,V> bObj)
Description copied from interface:DataType
Compare two keys.
-
write
public void write(WriteBuffer buff, Record<K,V> record)
Description copied from interface:DataType
Write an object.
-
read
public Record<K,V> read(java.nio.ByteBuffer buff)
Description copied from interface:DataType
Read an object.
-
-