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 PagedBytes
private final DataOutput
private int[]
private final FieldInfo
private final Counter
private int
private int
private int
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPackedValue
(int docID, BytesRef value) void
flush
(SegmentWriteState state, Sorter.DocMap sortMap, PointsWriter writer) int
Get 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
-