Package org.apache.lucene.util.bkd
Class DocIdsWriter
- java.lang.Object
-
- org.apache.lucene.util.bkd.DocIdsWriter
-
final class DocIdsWriter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static byteBITSET_IDSprivate static byteBPV_24private static byteBPV_32private static byteCONTINUOUS_IDSprivate static byteDELTA_BPV_16private static byteLEGACY_DELTA_VINTprivate int[]scratch
-
Constructor Summary
Constructors Constructor Description DocIdsWriter(int maxPointsInLeaf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidreadBitSet(IndexInput in, int count, int[] docIDs)private static voidreadBitSet(IndexInput in, int count, PointValues.IntersectVisitor visitor)private static DocIdSetIteratorreadBitSetIterator(IndexInput in, int count)private static voidreadContinuousIds(IndexInput in, int count, int[] docIDs)private static voidreadContinuousIds(IndexInput in, int count, PointValues.IntersectVisitor visitor)private static voidreadDelta16(IndexInput in, int count, int[] docIDs)private voidreadDelta16(IndexInput in, int count, PointValues.IntersectVisitor visitor)(package private) voidreadInts(IndexInput in, int count, int[] docIDs)Readcountintegers intodocIDs.(package private) voidreadInts(IndexInput in, int count, PointValues.IntersectVisitor visitor)Readcountintegers and feed the result directly toPointValues.IntersectVisitor.visit(int).private static voidreadInts24(IndexInput in, int count, int[] docIDs)private static voidreadInts24(IndexInput in, int count, PointValues.IntersectVisitor visitor)private static voidreadInts32(IndexInput in, int count, int[] docIDs)private voidreadInts32(IndexInput in, int count, PointValues.IntersectVisitor visitor)private static voidreadLegacyDeltaVInts(IndexInput in, int count, int[] docIDs)private static voidreadLegacyDeltaVInts(IndexInput in, int count, PointValues.IntersectVisitor visitor)(package private) voidwriteDocIds(int[] docIds, int start, int count, DataOutput out)private static voidwriteIdsAsBitSet(int[] docIds, int start, int count, DataOutput out)
-
-
-
Field Detail
-
CONTINUOUS_IDS
private static final byte CONTINUOUS_IDS
- See Also:
- Constant Field Values
-
BITSET_IDS
private static final byte BITSET_IDS
- See Also:
- Constant Field Values
-
DELTA_BPV_16
private static final byte DELTA_BPV_16
- See Also:
- Constant Field Values
-
BPV_24
private static final byte BPV_24
- See Also:
- Constant Field Values
-
BPV_32
private static final byte BPV_32
- See Also:
- Constant Field Values
-
LEGACY_DELTA_VINT
private static final byte LEGACY_DELTA_VINT
- See Also:
- Constant Field Values
-
scratch
private final int[] scratch
-
-
Method Detail
-
writeDocIds
void writeDocIds(int[] docIds, int start, int count, DataOutput out) throws java.io.IOException- Throws:
java.io.IOException
-
writeIdsAsBitSet
private static void writeIdsAsBitSet(int[] docIds, int start, int count, DataOutput out) throws java.io.IOException- Throws:
java.io.IOException
-
readInts
void readInts(IndexInput in, int count, int[] docIDs) throws java.io.IOException
Readcountintegers intodocIDs.- Throws:
java.io.IOException
-
readBitSetIterator
private static DocIdSetIterator readBitSetIterator(IndexInput in, int count) throws java.io.IOException
- Throws:
java.io.IOException
-
readContinuousIds
private static void readContinuousIds(IndexInput in, int count, int[] docIDs) throws java.io.IOException
- Throws:
java.io.IOException
-
readLegacyDeltaVInts
private static void readLegacyDeltaVInts(IndexInput in, int count, int[] docIDs) throws java.io.IOException
- Throws:
java.io.IOException
-
readBitSet
private static void readBitSet(IndexInput in, int count, int[] docIDs) throws java.io.IOException
- Throws:
java.io.IOException
-
readDelta16
private static void readDelta16(IndexInput in, int count, int[] docIDs) throws java.io.IOException
- Throws:
java.io.IOException
-
readInts24
private static void readInts24(IndexInput in, int count, int[] docIDs) throws java.io.IOException
- Throws:
java.io.IOException
-
readInts32
private static void readInts32(IndexInput in, int count, int[] docIDs) throws java.io.IOException
- Throws:
java.io.IOException
-
readInts
void readInts(IndexInput in, int count, PointValues.IntersectVisitor visitor) throws java.io.IOException
Readcountintegers and feed the result directly toPointValues.IntersectVisitor.visit(int).- Throws:
java.io.IOException
-
readBitSet
private static void readBitSet(IndexInput in, int count, PointValues.IntersectVisitor visitor) throws java.io.IOException
- Throws:
java.io.IOException
-
readContinuousIds
private static void readContinuousIds(IndexInput in, int count, PointValues.IntersectVisitor visitor) throws java.io.IOException
- Throws:
java.io.IOException
-
readLegacyDeltaVInts
private static void readLegacyDeltaVInts(IndexInput in, int count, PointValues.IntersectVisitor visitor) throws java.io.IOException
- Throws:
java.io.IOException
-
readDelta16
private void readDelta16(IndexInput in, int count, PointValues.IntersectVisitor visitor) throws java.io.IOException
- Throws:
java.io.IOException
-
readInts24
private static void readInts24(IndexInput in, int count, PointValues.IntersectVisitor visitor) throws java.io.IOException
- Throws:
java.io.IOException
-
readInts32
private void readInts32(IndexInput in, int count, PointValues.IntersectVisitor visitor) throws java.io.IOException
- Throws:
java.io.IOException
-
-