D - type of opaque parameter passed as an operational context to Factory.create()public final class MetaType<D> extends BasicDataType<DataType<?>>
| Constructor and Description |
|---|
MetaType(D database,
java.lang.Thread.UncaughtExceptionHandler exceptionHandler) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(DataType<?> a,
DataType<?> b)
Compare two keys.
|
DataType<?>[] |
createStorage(int size)
Create storage object of array type to hold values
|
int |
getMemory(DataType<?> obj)
Calculates the amount of used memory in bytes.
|
DataType<?> |
read(java.nio.ByteBuffer buff)
Read an object.
|
void |
write(WriteBuffer buff,
DataType<?> obj)
Write an object.
|
binarySearch, cast, equals, hashCode, isMemoryEstimationAllowed, read, writepublic MetaType(D database, java.lang.Thread.UncaughtExceptionHandler exceptionHandler)
public int compare(DataType<?> a, DataType<?> b)
DataTypepublic int getMemory(DataType<?> obj)
DataTypepublic void write(WriteBuffer buff, DataType<?> obj)
DataTypepublic DataType<?> read(java.nio.ByteBuffer buff)
DataType