class SortedSetDocValuesWriter extends DocValuesWriter
Modifier and Type | Class and Description |
---|---|
private static class |
SortedSetDocValuesWriter.OrdCountIterator |
private static class |
SortedSetDocValuesWriter.OrdsIterator |
private static class |
SortedSetDocValuesWriter.ValuesIterator |
Modifier and Type | Field and Description |
---|---|
private long |
bytesUsed |
private int |
currentDoc |
private int |
currentUpto |
private int[] |
currentValues |
private FieldInfo |
fieldInfo |
(package private) BytesRefHash |
hash |
private Counter |
iwBytesUsed |
private int |
maxCount |
private PackedLongValues.Builder |
pending |
private PackedLongValues.Builder |
pendingCounts |
Constructor and Description |
---|
SortedSetDocValuesWriter(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) |
private void |
finishCurrentDoc() |
void |
flush(SegmentWriteState state,
DocValuesConsumer dvConsumer) |
private void |
updateBytesUsed() |
final BytesRefHash hash
private PackedLongValues.Builder pending
private PackedLongValues.Builder pendingCounts
private final Counter iwBytesUsed
private long bytesUsed
private final FieldInfo fieldInfo
private int currentDoc
private int[] currentValues
private int currentUpto
private int maxCount
public void addValue(int docID, BytesRef value)
private void finishCurrentDoc()
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