Method GetDirectReaderNoHeader
GetDirectReaderNoHeader(IndexInput, PackedInt32s.Format, Int32, Int32, Int32)
Expert: Construct a direct PackedInt32s.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 using GetWriterNoHeader(DataOutput, PackedInt32s.Format, Int32, Int32, Int32).
The returned reader will have very little memory overhead, but every call to Get(Int32) is likely to perform a disk seek.
@lucene.internal
Declaration
public static PackedInt32s.Reader GetDirectReaderNoHeader(IndexInput in, PackedInt32s.Format format, int version, int valueCount, int bitsPerValue)
Parameters
Type | Name | Description |
---|---|---|
IndexInput | in | The stream to read data from. |
PackedInt32s.Format | format | The format used to serialize. |
System.Int32 | version | The version used to serialize the data. |
System.Int32 | valueCount | How many values the stream holds. |
System.Int32 | bitsPerValue | The number of bits per value. |
Returns
Type | Description |
---|---|
PackedInt32s.Reader | A direct PackedInt32s.Reader. |
GetDirectReaderNoHeader(IndexInput, PackedInt32s.Header)
Expert: Construct a direct PackedInt32s.Reader from an IndexInput without reading metadata at the beginning of the stream. this method is useful to restore data when metadata has been previously read using ReadHeader(DataInput).
@lucene.internal
Declaration
public static PackedInt32s.Reader GetDirectReaderNoHeader(IndexInput in, PackedInt32s.Header header)
Parameters
Type | Name | Description |
---|---|---|
IndexInput | in | The stream to read data from, positioned at the beginning of the packed values. |
PackedInt32s.Header | header | Metadata result from ReadHeader(DataInput). |
Returns
Type | Description |
---|---|
PackedInt32s.Reader |