Package | Description |
---|---|
com.alexkasko.unsafe.offheapstruct |
Long sized off-heap collections of "structs" (memory areas with equal sizes)
with sorting and searching support
|
Modifier and Type | Method and Description |
---|---|
void |
OffHeapStructBinarySearchWithComparator.binarySearchRange(byte[] struct,
OffHeapStructBinarySearch.IndexRange out)
Performs a binary search for
value in the ascending sorted off-heap struct collection
comparing provided struct using comparator (both collection and comparator are bound to searcher instance). |
void |
OffHeapStructBinarySearchWithComparator.binarySearchRange(long startIndex,
long endIndex,
byte[] struct,
OffHeapStructBinarySearch.IndexRange out)
Performs a binary search for
value in the ascending sorted off-heap struct collection
comparing provided struct using comparator (both collection and comparator are bound to searcher instance). |
static void |
OffHeapStructBinarySearch.binarySearchRangeByIntKey(OffHeapStructCollection collection,
long value,
int keyOffset,
OffHeapStructBinarySearch.IndexRange out)
Performs a binary search for
value in the ascending sorted off-heap struct collection using int struct key. |
static void |
OffHeapStructBinarySearch.binarySearchRangeByIntKey(OffHeapStructCollection collection,
long startIndex,
long endIndex,
long value,
int keyOffset,
OffHeapStructBinarySearch.IndexRange out)
Performs a binary search for
value in the ascending sorted off-heap struct collection using int struct key. |
static void |
OffHeapStructBinarySearch.binarySearchRangeByLongKey(OffHeapStructCollection collection,
long value,
int keyOffset,
OffHeapStructBinarySearch.IndexRange out)
Performs a binary search for
value in the ascending sorted off-heap struct collection using long struct key. |
static void |
OffHeapStructBinarySearch.binarySearchRangeByLongKey(OffHeapStructCollection collection,
long startIndex,
long endIndex,
long value,
int keyOffset,
OffHeapStructBinarySearch.IndexRange out)
Performs a binary search for
value in the ascending sorted off-heap struct collection using long struct key. |
Copyright © 2014. All Rights Reserved.