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