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 PagedBytesprivate final DataOutputprivate int[]private final FieldInfoprivate final Counterprivate intprivate intprivate intprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPackedValue(int docID, BytesRef value) voidflush(SegmentWriteState state, Sorter.DocMap sortMap, PointsWriter writer) intGet number of buffered documents
-
Field Details
-
fieldInfo
-
bytes
-
bytesOut
-
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
-
-
Method Details
-
addPackedValue
- Throws:
IOException
-
getNumDocs
public int getNumDocs()Get number of buffered documents- Returns:
- number of buffered documents
-
flush
public void flush(SegmentWriteState state, Sorter.DocMap sortMap, PointsWriter writer) throws IOException - Throws:
IOException
-