Package org.h2.mvstore.db
Class LobStorageMap.BlobReference.Type
java.lang.Object
org.h2.mvstore.type.BasicDataType<LobStorageMap.BlobReference>
org.h2.mvstore.db.LobStorageMap.BlobReference.Type
- All Implemented Interfaces:
Comparator<LobStorageMap.BlobReference>,DataType<LobStorageMap.BlobReference>
- Enclosing class:
- LobStorageMap.BlobReference
public static final class LobStorageMap.BlobReference.Type
extends BasicDataType<LobStorageMap.BlobReference>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintCompare two keys.createStorage(int size) Create storage object of array type to hold valuesintgetMemory(LobStorageMap.BlobReference blobReference) Calculates the amount of used memory in bytes.read(ByteBuffer buff) Read an object.voidwrite(WriteBuffer buff, LobStorageMap.BlobReference blobReference) 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
-
INSTANCE
-
-
Method Details
-
getMemory
Description copied from interface:DataTypeCalculates the amount of used memory in bytes.- Specified by:
getMemoryin interfaceDataType<LobStorageMap.BlobReference>- Specified by:
getMemoryin classBasicDataType<LobStorageMap.BlobReference>- Parameters:
blobReference- the object- Returns:
- the used memory
-
compare
Description copied from interface:DataTypeCompare two keys.- Specified by:
comparein interfaceComparator<LobStorageMap.BlobReference>- Specified by:
comparein interfaceDataType<LobStorageMap.BlobReference>- Overrides:
comparein classBasicDataType<LobStorageMap.BlobReference>- Parameters:
one- the first keytwo- the second key- Returns:
- -1 if the first key is smaller, 1 if larger, and 0 if equal
-
write
Description copied from interface:DataTypeWrite an object.- Specified by:
writein interfaceDataType<LobStorageMap.BlobReference>- Specified by:
writein classBasicDataType<LobStorageMap.BlobReference>- Parameters:
buff- the target bufferblobReference- the value
-
read
Description copied from interface:DataTypeRead an object.- Specified by:
readin interfaceDataType<LobStorageMap.BlobReference>- Specified by:
readin classBasicDataType<LobStorageMap.BlobReference>- Parameters:
buff- the source buffer- Returns:
- the 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
-