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 TypeMethodDescriptionint
Compare two keys.createStorage
(int size) Create storage object of array type to hold valuesint
Calculates the amount of used memory in bytes.read
(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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:DataType
Calculates the amount of used memory in bytes. -
compare
Description copied from interface:DataType
Compare two keys. -
write
Description copied from interface:DataType
Write an object. -
read
Description copied from interface:DataType
Read an object. -
createStorage
Description copied from interface:DataType
Create storage object of array type to hold values- Parameters:
size
- number of values to hold- Returns:
- storage object
-