Class LegacyPackedInts
java.lang.Object
org.apache.lucene.backward_codecs.packed.LegacyPackedInts
Legacy PackedInts operations.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Method Summary
Modifier and TypeMethodDescriptionstatic PackedInts.Reader
getReaderNoHeader
(DataInput in, PackedInts.Format format, int version, int valueCount, int bitsPerValue) Expert: Restore aPackedInts.Reader
from a stream without reading metadata at the beginning of the stream.
-
Method Details
-
getReaderNoHeader
public static PackedInts.Reader getReaderNoHeader(DataInput in, PackedInts.Format format, int version, int valueCount, int bitsPerValue) throws IOException Expert: Restore aPackedInts.Reader
from a stream without reading metadata at the beginning of the stream. This method is useful to restore data from streams which have been created usingPackedInts.getWriterNoHeader(DataOutput, PackedInts.Format, int, int, int)
.- Parameters:
in
- the stream to read data from, positioned at the beginning of the packed valuesformat
- the format used to serializeversion
- the version used to serialize the datavalueCount
- how many values the stream holdsbitsPerValue
- the number of bits per value- Returns:
- a Reader
- Throws:
IOException
- If there is a low-level I/O error- See Also:
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-