D - type of opaque parameter passed as an operational context to Factory.create()public final class MetaType<D> extends BasicDataType<DataType<?>>
| 构造器和说明 |
|---|
MetaType(D database,
Thread.UncaughtExceptionHandler exceptionHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
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(ByteBuffer buff)
Read an object.
|
void |
write(WriteBuffer buff,
DataType<?> obj)
Write an object.
|
binarySearch, cast, equals, hashCode, isMemoryEstimationAllowed, read, writepublic MetaType(D database, Thread.UncaughtExceptionHandler exceptionHandler)
public int compare(DataType<?> a, DataType<?> b)
DataTypecompare 在接口中 Comparator<DataType<?>>compare 在接口中 DataType<DataType<?>>compare 在类中 BasicDataType<DataType<?>>a - the first keyb - the second keypublic int getMemory(DataType<?> obj)
DataTypepublic void write(WriteBuffer buff, DataType<?> obj)
DataTypepublic DataType<?> read(ByteBuffer buff)
DataTypeCopyright © 2022. All rights reserved.