java.lang.Object
org.apache.lucene.codecs.lucene99.PForUtil
Utility class to encode sequences of 128 small positive integers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ForUtilprivate static final long[]private static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static booleanallEqual(long[] l) (package private) voidDecode 128 integers intoints.(package private) voidencode(long[] longs, DataOutput out) Encode 128 integers fromlongsintoout.(package private) voidSkip 128 integers.
-
Field Details
-
MAX_EXCEPTIONS
private static final int MAX_EXCEPTIONS- See Also:
-
IDENTITY_PLUS_ONE
private static final long[] IDENTITY_PLUS_ONE -
forUtil
-
-
Constructor Details
-
PForUtil
PForUtil(ForUtil forUtil)
-
-
Method Details
-
allEqual
static boolean allEqual(long[] l) -
encode
Encode 128 integers fromlongsintoout.- Throws:
IOException
-
decode
Decode 128 integers intoints.- Throws:
IOException
-
skip
Skip 128 integers.- Throws:
IOException
-