Package com.alexkasko.unsafe.offheaplong

Long sized off-heap collections of longs with sorting and searching support

See: Description

Package com.alexkasko.unsafe.offheaplong Description

Long sized off-heap collections of longs with sorting and searching support

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.

Features

Iterators

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().

Operations

Long packing

LongPacker - utility class for storing one int primitive and one long with bounded value into one long

Usage example in tests (github links)

Copyright © 2014. All Rights Reserved.