Package org.apache.lucene.index
Class PointValuesWriter
java.lang.Object
org.apache.lucene.index.PointValuesWriter
Buffers up pending byte[][] value(s) per doc, then flushes when segment flushes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteBlockPoolprivate int[]private final FieldInfoprivate final Counterprivate intprivate intprivate intprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionPointValuesWriter(ByteBlockPool.Allocator allocator, Counter bytesUsed, FieldInfo fieldInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPackedValue(int docID, BytesRef value) voidflush(SegmentWriteState state, Sorter.DocMap sortMap, PointsWriter writer)
-
Field Details
-
fieldInfo
-
bytes
-
iwBytesUsed
-
docIDs
private int[] docIDs -
numPoints
private int numPoints -
numDocs
private int numDocs -
lastDocID
private int lastDocID -
packedBytesLength
private final int packedBytesLength
-
-
Constructor Details
-
PointValuesWriter
PointValuesWriter(ByteBlockPool.Allocator allocator, Counter bytesUsed, FieldInfo fieldInfo)
-
-
Method Details
-
addPackedValue
-
flush
public void flush(SegmentWriteState state, Sorter.DocMap sortMap, PointsWriter writer) throws IOException - Throws:
IOException
-