class NumericDocValuesWriter extends DocValuesWriter
Modifier and Type | Class and Description |
---|---|
private static class |
NumericDocValuesWriter.NumericIterator |
Modifier and Type | Field and Description |
---|---|
private long |
bytesUsed |
private FixedBitSet |
docsWithField |
private FieldInfo |
fieldInfo |
private Counter |
iwBytesUsed |
private static long |
MISSING |
private PackedLongValues.Builder |
pending |
Constructor and Description |
---|
NumericDocValuesWriter(FieldInfo fieldInfo,
Counter iwBytesUsed) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(int docID,
long value) |
private long |
docsWithFieldBytesUsed() |
void |
finish(int maxDoc) |
void |
flush(SegmentWriteState state,
DocValuesConsumer dvConsumer) |
private void |
updateBytesUsed() |
private static final long MISSING
private PackedLongValues.Builder pending
private final Counter iwBytesUsed
private long bytesUsed
private FixedBitSet docsWithField
private final FieldInfo fieldInfo
public void addValue(int docID, long value)
private long docsWithFieldBytesUsed()
private void updateBytesUsed()
public void finish(int maxDoc)
finish
in class DocValuesWriter
public void flush(SegmentWriteState state, DocValuesConsumer dvConsumer) throws java.io.IOException
flush
in class DocValuesWriter
java.io.IOException