Method GetDirectReader
GetDirectReader(IndexInput)
Construct a direct PackedInt32s.Reader from an IndexInput. this method is useful to restore data from streams which have been created using GetWriter(DataOutput, Int32, Int32, Single).
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 GetDirectReader(IndexInput in)
Parameters
Type | Name | Description |
---|---|---|
IndexInput | in | The stream to read data from. |
Returns
Type | Description |
---|---|
PackedInt32s.Reader | A direct PackedInt32s.Reader. |