See: Description
Interface | Description |
---|---|
OffHeapLongAddressable |
Interface for off-heap collections with long elements.
|
OffHeapLongComparator |
Primitive long comparator interface to use for
|
Class | Description |
---|---|
LongPacker |
Contains static methods for packing two values with limited size (one long and one int)
into one long value.
|
OffHeapLongArray |
Implementation of array of long using
OffHeapMemory . |
OffHeapLongArrayList |
Implementation of array-list of long using
OffHeapMemory . |
OffHeapLongBinarySearch |
Binary search implementation borrowed from
https://android.googlesource.com/platform/libcore/+/android-4.2.2_r1/luni/src/main/java/java/util/Arrays.java
and adapted to OffHeapAddressable |
OffHeapLongBinarySearch.IndexRange |
OffHeapAddressable index range representation. |
OffHeapLongIterator |
Iterator implementation for unsafe long collections.
|
OffHeapLongSorter |
alexkasko: borrowed from
https://android.googlesource.com/platform/libcore/+/android-4.2.2_r1/luni/src/main/java/java/util/DualPivotQuicksort.java
and adapted to OffHeapLongAddressable . |
OffHeapLongSorter.LongComp |
This package contains implementations of fixed-sized array of longs (OffHeapLongArray
)
and growing array list of longs (OffHeapLongArrayList
). Both classes are implemented on top of
OffHeapMemory
.
Integer.MAX_VALUE
)OffHeapMemory
will free allocated memory when it's instance will be garbage collected)Both collections implements Iterable
, but foreach
must be used with caution, because
in java 6/7 iterators causes new autoboxed Long
object creation for each call to
Iterator.next()
.
OffHeapLongSorter
: implementation of Dual-Pivot quicksort algorithm
adapted to off-heap collectionscom.alexkasko.unsafe.offheaplong.OffHeapLongComparator
OffHeapLongBinarySearch
OffHeapLongBinarySearch.binarySearchRange(com.alexkasko.unsafe.offheap.OffHeapAddressable, long, com.alexkasko.unsafe.offheaplong.OffHeapLongBinarySearch.IndexRange)
LongPacker
- utility class for storing one int primitive and one long with bounded value into one long
Copyright © 2014. All Rights Reserved.