Package org.apache.lucene.util.packed
The packed package provides random access capable arrays of positive longs. The implementations provides different trade offs between memory usage and access speed. The standard usage scenario is replacing large int or long arrays in order to reduce the memory footprint.
The main access point is the PackedInts
factory.
-
Interface Summary Interface Description PackedInts.Mutable A packed integer array that can be modified.PackedInts.Reader A read-only random access array of positive integers. -
Class Summary Class Description GrowableWriter ImplementsPackedInts.Mutable
, but grows the bit count of the underlying packed ints on-demand.PackedInts Simplistic compression for array of unsigned long values.PackedInts.ReaderImpl A simple base for Readers that keeps track of valueCount and bitsPerValue.PackedInts.Writer A write-once Writer.