| Modifier and Type | Field and Description |
|---|---|
| public static final NullValueDataType | INSTANCE
Dummy data type instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | binarySearch(Value
to search for key, Object to search within (an array of type T) storage, int number of data items in the storage size, int for key position initialGuess)Implements org. Perform binary search for the key within the storage |
| public int | compare(Value
the first key a, Value the second key b)Implements org. Compare two keys. |
| public Value[] | createStorage(int
number of values to hold size)Implements org. Create storage object of array type to hold values |
| public int | getMemory(Value
the object obj)Implements org. Calculates the amount of used memory in bytes. |
| public boolean | isMemoryEstimationAllowed()
Implements org. Whether memory estimation based on previously seen values is allowed/desirable |
| public Value | |
| public void | read(ByteBuffer
the target buffer buff, Object the objects storage, int the number of objects to read len)Implements org. Read a list of objects. |
| public void | write(WriteBuffer
the target buffer buff, Value the value obj)Implements org. Write an object. |
| public void | write(WriteBuffer
the target buffer buff, Object the objects storage, int the number of objects to write len)Implements org. Write a list of objects. |
| INSTANCE | back to summary |
|---|---|
| public static final NullValueDataType INSTANCE Dummy data type instance. | |
| NullValueDataType | back to summary |
|---|---|
| private NullValueDataType() | |
| binarySearch | back to summary |
|---|---|
| public int binarySearch(Value key, Object storage, int size, int initialGuess) Implements org. Doc from org. Perform binary search for the key within the storage | |
| compare | back to summary |
|---|---|
| public int compare(Value a, Value b) Implements org. Doc from org. Compare two keys. | |
| createStorage | back to summary |
|---|---|
| public Value[] createStorage(int size) Implements org. Doc from org. Create storage object of array type to hold values | |
| getMemory | back to summary |
|---|---|
| public int getMemory(Value obj) Implements org. Doc from org. Calculates the amount of used memory in bytes. | |
| isMemoryEstimationAllowed | back to summary |
|---|---|
| public boolean isMemoryEstimationAllowed() Implements org. Doc from org. Whether memory estimation based on previously seen values is allowed/desirable
| |
| read | back to summary |
|---|---|
| public Value read(ByteBuffer buff) Implements org. Doc from org. Read an object.
| |
| read | back to summary |
|---|---|
| public void read(ByteBuffer buff, Object storage, int len) Implements org. Doc from org. Read a list of objects.
| |
| write | back to summary |
|---|---|
| public void write(WriteBuffer buff, Value obj) Implements org. Doc from org. Write an object.
| |
| write | back to summary |
|---|---|
| public void write(WriteBuffer buff, Object storage, int len) Implements org. Doc from org. Write a list of objects.
| |