class SortedNumericDocValuesWriter extends DocValuesWriter
Modifier and Type | Class and Description |
---|---|
private static class |
SortedNumericDocValuesWriter.CountIterator |
private static class |
SortedNumericDocValuesWriter.ValuesIterator |
Modifier and Type | Field and Description |
---|---|
private long |
bytesUsed |
private int |
currentDoc |
private int |
currentUpto |
private long[] |
currentValues |
private FieldInfo |
fieldInfo |
private Counter |
iwBytesUsed |
private PackedLongValues.Builder |
pending |
private PackedLongValues.Builder |
pendingCounts |
Constructor and Description |
---|
SortedNumericDocValuesWriter(FieldInfo fieldInfo,
Counter iwBytesUsed) |
Modifier and Type | Method and Description |
---|---|
private void |
addOneValue(long value) |
void |
addValue(int docID,
long value) |
void |
finish(int maxDoc) |
private void |
finishCurrentDoc() |
void |
flush(SegmentWriteState state,
DocValuesConsumer dvConsumer) |
private void |
updateBytesUsed() |
private PackedLongValues.Builder pending
private PackedLongValues.Builder pendingCounts
private final Counter iwBytesUsed
private long bytesUsed
private final FieldInfo fieldInfo
private int currentDoc
private long[] currentValues
private int currentUpto
public void addValue(int docID, long value)
private void finishCurrentDoc()
public void finish(int maxDoc)
finish
in class DocValuesWriter
private void addOneValue(long value)
private void updateBytesUsed()
public void flush(SegmentWriteState state, DocValuesConsumer dvConsumer) throws java.io.IOException
flush
in class DocValuesWriter
java.io.IOException