Package org.h2.mvstore.db
Class LobStorageMap.BlobMeta.Type
java.lang.Object
org.h2.mvstore.type.BasicDataType<LobStorageMap.BlobMeta>
org.h2.mvstore.db.LobStorageMap.BlobMeta.Type
- All Implemented Interfaces:
Comparator<LobStorageMap.BlobMeta>,DataType<LobStorageMap.BlobMeta>
- Enclosing class:
- LobStorageMap.BlobMeta
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateStorage(int size) Create storage object of array type to hold valuesintgetMemory(LobStorageMap.BlobMeta blobMeta) Calculates the amount of used memory in bytes.read(ByteBuffer buff) Read an object.voidwrite(WriteBuffer buff, LobStorageMap.BlobMeta blobMeta) Write an object.Methods inherited from class org.h2.mvstore.type.BasicDataType
binarySearch, cast, compare, 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.BlobMeta>- Specified by:
getMemoryin classBasicDataType<LobStorageMap.BlobMeta>- Parameters:
blobMeta- the object- Returns:
- the used memory
-
write
Description copied from interface:DataTypeWrite an object.- Specified by:
writein interfaceDataType<LobStorageMap.BlobMeta>- Specified by:
writein classBasicDataType<LobStorageMap.BlobMeta>- Parameters:
buff- the target bufferblobMeta- the value
-
read
Description copied from interface:DataTypeRead an object.- Specified by:
readin interfaceDataType<LobStorageMap.BlobMeta>- Specified by:
readin classBasicDataType<LobStorageMap.BlobMeta>- 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
-