Method GetReaderNoHeader
GetReaderNoHeader(DataInput, PackedInt32s.Format, Int32, Int32, Int32)
Expert: Restore a 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).
@lucene.internal
Declaration
public static PackedInt32s.Reader GetReaderNoHeader(DataInput in, PackedInt32s.Format format, int version, int valueCount, int bitsPerValue)
Parameters
Type | Name | Description |
---|---|---|
DataInput | in | The stream to read data from, positioned at the beginning of the packed values. |
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 |
See Also
GetReaderNoHeader(DataInput, PackedInt32s.Header)
Expert: Restore a PackedInt32s.Reader from a stream 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 GetReaderNoHeader(DataInput in, PackedInt32s.Header header)
Parameters
Type | Name | Description |
---|---|---|
DataInput | 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 |