class SortedDocValuesWriter extends DocValuesWriter
Modifier and Type | Class and Description |
---|---|
private static class |
SortedDocValuesWriter.BufferedSortedDocValues |
Modifier and Type | Field and Description |
---|---|
private long |
bytesUsed |
private DocsWithFieldSet |
docsWithField |
private FieldInfo |
fieldInfo |
private int[] |
finalOrdMap |
private PackedLongValues |
finalOrds |
private int[] |
finalSortedValues |
(package private) BytesRefHash |
hash |
private Counter |
iwBytesUsed |
private int |
lastDocID |
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,
Sorter.DocMap sortMap,
DocValuesConsumer dvConsumer) |
(package private) Sorter.DocComparator |
getDocComparator(int maxDoc,
SortField sortField) |
(package private) DocIdSetIterator |
getDocIdSet() |
private int[] |
sortDocValues(int maxDoc,
Sorter.DocMap sortMap,
SortedDocValues oldValues) |
private void |
updateBytesUsed() |
final BytesRefHash hash
private PackedLongValues.Builder pending
private DocsWithFieldSet docsWithField
private final Counter iwBytesUsed
private long bytesUsed
private final FieldInfo fieldInfo
private int lastDocID
private PackedLongValues finalOrds
private int[] finalSortedValues
private int[] finalOrdMap
public void addValue(int docID, BytesRef value)
public void finish(int maxDoc)
finish
in class DocValuesWriter
private void addOneValue(BytesRef value)
private void updateBytesUsed()
Sorter.DocComparator getDocComparator(int maxDoc, SortField sortField) throws java.io.IOException
getDocComparator
in class DocValuesWriter
java.io.IOException
private int[] sortDocValues(int maxDoc, Sorter.DocMap sortMap, SortedDocValues oldValues) throws java.io.IOException
java.io.IOException
public void flush(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) throws java.io.IOException
flush
in class DocValuesWriter
java.io.IOException
DocIdSetIterator getDocIdSet()
getDocIdSet
in class DocValuesWriter