class SortedDocValuesWriter extends DocValuesWriter
Modifier and Type | Class and Description |
---|---|
private static class |
SortedDocValuesWriter.OrdsIterator |
private static class |
SortedDocValuesWriter.ValuesIterator |
Modifier and Type | Field and Description |
---|---|
private long |
bytesUsed |
private static int |
EMPTY_ORD |
private FieldInfo |
fieldInfo |
(package private) BytesRefHash |
hash |
private Counter |
iwBytesUsed |
private PackedLongValues.Builder |
pending |
Constructor and Description |
---|
SortedDocValuesWriter(FieldInfo fieldInfo,
Counter iwBytesUsed) |
Modifier and Type | Method and Description |
---|---|
private void |
addOneValue(BytesRef value) |
void |
addValue(int docID,
BytesRef value) |
void |
finish(int maxDoc) |
void |
flush(SegmentWriteState state,
DocValuesConsumer dvConsumer) |
private void |
updateBytesUsed() |
final BytesRefHash hash
private PackedLongValues.Builder pending
private final Counter iwBytesUsed
private long bytesUsed
private final FieldInfo fieldInfo
private static final int EMPTY_ORD
public void addValue(int docID, BytesRef value)
public void finish(int maxDoc)
finish
in class DocValuesWriter
private void addOneValue(BytesRef value)
private void updateBytesUsed()
public void flush(SegmentWriteState state, DocValuesConsumer dvConsumer) throws java.io.IOException
flush
in class DocValuesWriter
java.io.IOException