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 PagedBytes
bytes
private DataOutput
bytesOut
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(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)
int
getNumDocs()
Get number of buffered documents
-
-
-
Field Detail
-
fieldInfo
private final FieldInfo fieldInfo
-
bytes
private final PagedBytes bytes
-
bytesOut
private final DataOutput bytesOut
-
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
-
-
Method Detail
-
addPackedValue
public void addPackedValue(int docID, BytesRef value) throws java.io.IOException
- Throws:
java.io.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 java.io.IOException
- Throws:
java.io.IOException
-
-