Package org.apache.lucene.util.packed
Class DirectMonotonicReader
- java.lang.Object
-
- org.apache.lucene.util.packed.DirectMonotonicReader
-
public final class DirectMonotonicReader extends Object
Retrieves an instance previously written byDirectMonotonicWriter.- See Also:
DirectMonotonicWriter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDirectMonotonicReader.MetaIn-memory metadata that needs to be kept around forDirectMonotonicReaderto read data from disk.
-
Constructor Summary
Constructors Constructor Description DirectMonotonicReader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LongValuesgetInstance(DirectMonotonicReader.Meta meta, RandomAccessInput data)Retrieves an instance from the specified slice.static DirectMonotonicReader.MetaloadMeta(IndexInput metaIn, long numValues, int blockShift)Load metadata from the givenIndexInput.
-
-
-
Method Detail
-
loadMeta
public static DirectMonotonicReader.Meta loadMeta(IndexInput metaIn, long numValues, int blockShift) throws IOException
Load metadata from the givenIndexInput.- Throws:
IOException- See Also:
getInstance(Meta, RandomAccessInput)
-
getInstance
public static LongValues getInstance(DirectMonotonicReader.Meta meta, RandomAccessInput data) throws IOException
Retrieves an instance from the specified slice.- Throws:
IOException
-
-