java.lang.Object
org.apache.lucene.codecs.lucene101.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
(int[] l) (package private) void
decode
(PostingDecodingUtil pdu, int[] ints) Decode 128 integers intoints
.(package private) void
encode
(int[] ints, DataOutput out) Encode 128 integers fromints
intoout
.(package private) static void
Skip 128 integers.
-
Field Details
-
MAX_EXCEPTIONS
private static final int MAX_EXCEPTIONS- See Also:
-
forUtil
-
-
Constructor Details
-
PForUtil
PForUtil()
-
-
Method Details
-
allEqual
static boolean allEqual(int[] l) -
encode
Encode 128 integers fromints
intoout
.- Throws:
IOException
-
decode
Decode 128 integers intoints
.- Throws:
IOException
-
skip
Skip 128 integers.- Throws:
IOException
-