Class PForUtil
java.lang.Object
org.apache.lucene.backward_codecs.lucene99.PForUtil
Utility class to encode sequences of 128 small positive integers.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static boolean
allEqual
(long[] l) (package private) void
Decode 128 integers intoints
.(package private) void
encode
(long[] longs, DataOutput out) Encode 128 integers fromlongs
intoout
.(package private) void
Skip 128 integers.
-
Field Details
-
MAX_EXCEPTIONS
private static final int MAX_EXCEPTIONS- See Also:
-
forUtil
-
-
Constructor Details
-
PForUtil
PForUtil(ForUtil forUtil)
-
-
Method Details
-
allEqual
static boolean allEqual(long[] l) -
encode
Encode 128 integers fromlongs
intoout
.- Throws:
IOException
-
decode
Decode 128 integers intoints
.- Throws:
IOException
-
skip
Skip 128 integers.- Throws:
IOException
-