| Modifier and Type | Field and Description |
|---|---|
| private static final Long[] | |
| public static final LongDataType |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | binarySearch(Long
to search for keyObj, Object to search within (an array of type T) storageObj, int number of data items in the storage size, int for key position initialGuess)Overrides org. Implements org. Perform binary search for the key within the storage |
| private static int | |
| public int | compare(Long
the first key one, Long the second key two)Overrides org. Implements org. Compare two keys. |
| public Long[] | createStorage(int
number of values to hold size)Implements org. Create storage object of array type to hold values |
| public int | getMemory(Long
the object obj)Implements abstract org. Implements org. Calculates the amount of used memory in bytes. |
| public Long | read(ByteBuffer
the source buffer buff)Implements abstract org. Implements org. Read an object. |
| public void | write(WriteBuffer
the target buffer buff, Long the value data)Implements abstract org. Implements org. Write an object. |
| EMPTY_LONG_ARR | back to summary |
|---|---|
| private static final Long[] EMPTY_LONG_ARR | |
| INSTANCE | back to summary |
|---|---|
| public static final LongDataType INSTANCE | |
| LongDataType | back to summary |
|---|---|
| private LongDataType() | |
| binarySearch | back to summary |
|---|---|
| public int binarySearch(Long keyObj, Object storageObj, int size, int initialGuess) Overrides org. Implements org. Doc from org. Perform binary search for the key within the storage | |
| binarySearch | back to summary |
|---|---|
| private static int binarySearch(long key, Long[] storage, int low, int high, int x) | |
| compare | back to summary |
|---|---|
| public int compare(Long one, Long two) Overrides org. Implements org. Doc from org. Compare two keys. | |
| createStorage | back to summary |
|---|---|
| public Long[] createStorage(int size) Implements org. Doc from org. Create storage object of array type to hold values | |
| getMemory | back to summary |
|---|---|
| public int getMemory(Long obj) Implements abstract org. Implements org. Doc from org. Calculates the amount of used memory in bytes. | |
| read | back to summary |
|---|---|
| public Long read(ByteBuffer buff) Implements abstract org. Implements org. Doc from org. Read an object.
| |
| write | back to summary |
|---|---|
| public void write(WriteBuffer buff, Long data) Implements abstract org. Implements org. Doc from org. Write an object.
| |