| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: index of the key , if found, - index of the insertion point, if notto 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)Perform binary search for the key within the storage |
| public int | Returns: -1 if the first key is smaller, 1 if larger, and 0 if equalthe first key a, T the second key b)Redeclares java. Compare two keys. |
| public T[] | Returns: storage objectnumber of values to hold size)Create storage object of array type to hold values |
| public int | |
| public boolean | Returns: true if memory estimation is allowedWhether memory estimation based on previously seen values is allowed/desirable |
| public T | |
| public void | read(ByteBuffer
the target buffer buff, Object the objects storage, int the number of objects to read len)Read a list of objects. |
| public void | |
| public void | write(WriteBuffer
the target buffer buff, Object the objects storage, int the number of objects to write len)Write a list of objects. |
| binarySearch | back to summary |
|---|---|
| public int binarySearch(T key, Object storage, int size, int initialGuess) Perform binary search for the key within the storage
| |
| compare | back to summary |
|---|---|
| public int compare(T a, T b) Redeclares java. Compare two keys.
| |
| createStorage | back to summary |
|---|---|
| public T[] createStorage(int size) Create storage object of array type to hold values
| |
| getMemory | back to summary |
|---|---|
| public int getMemory(T obj) Calculates the amount of used memory in bytes.
| |
| isMemoryEstimationAllowed | back to summary |
|---|---|
| public boolean isMemoryEstimationAllowed() Whether memory estimation based on previously seen values is allowed/desirable
| |
| read | back to summary |
|---|---|
| public T read(ByteBuffer buff) Read an object.
| |
| read | back to summary |
|---|---|
| public void read(ByteBuffer buff, Object storage, int len) Read a list of objects.
| |
| write | back to summary |
|---|---|
| public void write(WriteBuffer buff, T obj) Write an object.
| |
| write | back to summary |
|---|---|
| public void write(WriteBuffer buff, Object storage, int len) Write a list of objects.
| |