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 | Class and Description |
---|---|
private static class |
OffHeapStructComparator.OffHeapStructByteArrayAccessor
Struct's accessor implementation for byte array structs
|
private static class |
OffHeapStructComparator.OffHeapStructIndexAccessor
Struct's accessor implementation for off-heap stored structs
|
private static class |
OffHeapStructSorterByReference.OffHeapStructIndexAccessor
Struct's accessor implementation for off-heap stored structs
|
Modifier and Type | Field and Description |
---|---|
private Comparator<OffHeapStructAccessor> |
OffHeapStructSorterByReference.OffHeapReferenceComparator.comp |
private Comparator<OffHeapStructAccessor> |
OffHeapStructComparator.comp |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
OffHeapStructSorterWithComparator.sort(OffHeapStructCollection a,
Comparator<OffHeapStructAccessor> comparator)
Sorts the specified off-heap struct collection into ascending order using unsigned long struct key.
|
static void |
OffHeapStructSorter.sort(OffHeapStructCollection collection,
Comparator<OffHeapStructAccessor> comparator)
Sorts collection using comparator.
|
static void |
OffHeapStructSorter.sort(OffHeapStructCollection collection,
Comparator<OffHeapStructAccessor> comparator,
long fromIndex,
long toIndex)
Sorts collection using comparator.
|
(package private) static void |
OffHeapStructSorterWithComparator.sort(OffHeapStructCollection a,
long fromIndex,
long toIndex,
Comparator<OffHeapStructAccessor> comparator)
Sorts the specified range of the off-heap struct collection into ascending order using unsigned long struct key.
|
static OffHeapDisposableIterable<byte[]> |
OffHeapStructSorter.sortedByRefIterable(OffHeapStructCollection a,
Comparator<OffHeapStructAccessor> comparator)
Sorts collection using additional
OffHeapLongArray with the same size
as collection itself as an array of references (indices) of the collection |
static OffHeapDisposableIterable<byte[]> |
OffHeapStructSorter.sortedByRefIterable(OffHeapStructCollection a,
long fromIndex,
long toIndex,
Comparator<OffHeapStructAccessor> comparator)
Sorts collection using additional
OffHeapLongArray with the same size
as collection itself as an array of references (indices) of the collection |
(package private) static OffHeapDisposableIterable<byte[]> |
OffHeapStructSorterByReference.sortedIterable(OffHeapStructCollection a,
Comparator<OffHeapStructAccessor> comparator)
Sorts collection using additional
OffHeapLongArray with the same size
as collection itself as an array of references (indices) of the collection |
(package private) static OffHeapDisposableIterable<byte[]> |
OffHeapStructSorterByReference.sortedIterable(OffHeapStructCollection a,
long fromIndex,
long toIndex,
Comparator<OffHeapStructAccessor> comparator)
Sorts collection using additional
OffHeapLongArray with the same size
as collection itself as an array of references (indices) of the collection |
(package private) static OffHeapDisposableIterator<byte[]> |
OffHeapStructSorterWithComparator.sortedIterator(ExecutorService executor,
int threads,
OffHeapStructCollection a,
Comparator<OffHeapStructAccessor> comparator)
Partially sorts collection and returns fully sorted iterator over it
|
static OffHeapDisposableIterator<byte[]> |
OffHeapStructSorter.sortedIterator(ExecutorService executor,
int threadsCount,
OffHeapStructCollection collection,
Comparator<OffHeapStructAccessor> comparator)
Partially sorts collection and returns fully sorted iterator over it
|
static OffHeapDisposableIterator<byte[]> |
OffHeapStructSorter.sortedIterator(ExecutorService executor,
int threadsCount,
OffHeapStructCollection collection,
Comparator<OffHeapStructAccessor> comparator,
long fromIndex,
long toIndex)
Partially sorts part of the collection and returns fully sorted iterator over it
|
(package private) static OffHeapDisposableIterator<byte[]> |
OffHeapStructSorterWithComparator.sortedIterator(ExecutorService executor,
int threads,
OffHeapStructCollection a,
long fromIndex,
long toIndex,
Comparator<OffHeapStructAccessor> comparator)
Partially sorts part of the collection and returns fully sorted iterator over it
|
Constructor and Description |
---|
OffHeapStructBinarySearchWithComparator(OffHeapStructCollection collection,
Comparator<OffHeapStructAccessor> comparator)
Constructor
|
OffHeapStructComparator(OffHeapStructCollection col,
Comparator<OffHeapStructAccessor> comp)
Constructor
|
OffHeapStructSorterByReference.OffHeapReferenceComparator(OffHeapStructCollection data,
Comparator<OffHeapStructAccessor> comp)
Constructor
|
Copyright © 2014. All Rights Reserved.