public class ForDeltaUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ForUtil |
forUtil |
private static long[] |
IDENTITY_PLUS_ONE |
Constructor and Description |
---|
ForDeltaUtil(ForUtil forUtil) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
decodeAndPrefixSum(DataInput in,
long base,
long[] longs)
Decode deltas, compute the prefix sum and add
base to all decoded longs. |
(package private) void |
encodeDeltas(long[] longs,
DataOutput out)
Encode deltas of a strictly monotonically increasing sequence of integers.
|
private static void |
prefixSumOfOnes(long[] arr,
long base) |
(package private) void |
skip(DataInput in)
Skip a sequence of 128 longs.
|
private static final long[] IDENTITY_PLUS_ONE
private final ForUtil forUtil
ForDeltaUtil(ForUtil forUtil)
private static void prefixSumOfOnes(long[] arr, long base)
void encodeDeltas(long[] longs, DataOutput out) throws java.io.IOException
longs
are expected to be deltas between consecutive values.java.io.IOException
void decodeAndPrefixSum(DataInput in, long base, long[] longs) throws java.io.IOException
base
to all decoded longs.java.io.IOException
void skip(DataInput in) throws java.io.IOException
java.io.IOException