Package org.h2.mvstore.tx
Class Record.Type<K,V>
- All Implemented Interfaces:
Comparator<Record<K,,V>> DataType<Record<K,V>>
A data type for undo log values
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompare two keys.createStorage(int size) Create storage object of array type to hold valuesintCalculates the amount of used memory in bytes.read(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, writeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
transactionStore
-
-
Constructor Details
-
Type
Type(TransactionStore transactionStore)
-
-
Method Details
-
getMemory
Description copied from interface:DataTypeCalculates the amount of used memory in bytes. -
compare
Description copied from interface:DataTypeCompare two keys. -
write
Description copied from interface:DataTypeWrite an object. -
read
Description copied from interface:DataTypeRead an object. -
createStorage
Description copied from interface:DataTypeCreate storage object of array type to hold values- Parameters:
size- number of values to hold- Returns:
- storage object
-