Package org.apache.lucene.index
Class PointValuesWriter
- java.lang.Object
-
- org.apache.lucene.index.PointValuesWriter
-
class PointValuesWriter extends java.lang.Object
Buffers up pending byte[][] value(s) per doc, then flushes when segment flushes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
PointValuesWriter.MutableSortingPointValues
-
Field Summary
Fields Modifier and Type Field Description private ByteBlockPool
bytes
private int[]
docIDs
private FieldInfo
fieldInfo
private Counter
iwBytesUsed
private int
lastDocID
private int
numDocs
private int
numPoints
private int
packedBytesLength
-
Constructor Summary
Constructors Constructor Description PointValuesWriter(ByteBlockPool.Allocator allocator, Counter bytesUsed, FieldInfo fieldInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPackedValue(int docID, BytesRef value)
void
flush(SegmentWriteState state, Sorter.DocMap sortMap, PointsWriter writer)
-
-
-
Field Detail
-
fieldInfo
private final FieldInfo fieldInfo
-
bytes
private final ByteBlockPool bytes
-
iwBytesUsed
private final Counter iwBytesUsed
-
docIDs
private int[] docIDs
-
numPoints
private int numPoints
-
numDocs
private int numDocs
-
lastDocID
private int lastDocID
-
packedBytesLength
private final int packedBytesLength
-
-
Constructor Detail
-
PointValuesWriter
PointValuesWriter(ByteBlockPool.Allocator allocator, Counter bytesUsed, FieldInfo fieldInfo)
-
-
Method Detail
-
addPackedValue
public void addPackedValue(int docID, BytesRef value)
-
flush
public void flush(SegmentWriteState state, Sorter.DocMap sortMap, PointsWriter writer) throws java.io.IOException
- Throws:
java.io.IOException
-
-