class SortedSetDocValuesWriter extends DocValuesWriter
| Modifier and Type | Class and Description |
|---|---|
private static class |
SortedSetDocValuesWriter.BufferedSortedSetDocValues |
| Modifier and Type | Field and Description |
|---|---|
private long |
bytesUsed |
private int |
currentDoc |
private int |
currentUpto |
private int[] |
currentValues |
private DocsWithFieldSet |
docsWithField |
private FieldInfo |
fieldInfo |
private PackedLongValues |
finalOrdCounts |
private int[] |
finalOrdMap |
private PackedLongValues |
finalOrds |
private int[] |
finalSortedValues |
(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,
Sorter.DocMap sortMap,
DocValuesConsumer dvConsumer) |
(package private) Sorter.DocComparator |
getDocComparator(int maxDoc,
SortField sortField) |
(package private) DocIdSetIterator |
getDocIdSet() |
private long[][] |
sortDocValues(int maxDoc,
Sorter.DocMap sortMap,
SortedSetDocValues oldValues) |
private void |
updateBytesUsed() |
final BytesRefHash hash
private PackedLongValues.Builder pending
private PackedLongValues.Builder pendingCounts
private DocsWithFieldSet docsWithField
private final Counter iwBytesUsed
private long bytesUsed
private final FieldInfo fieldInfo
private int currentDoc
private int[] currentValues
private int currentUpto
private int maxCount
private PackedLongValues finalOrds
private PackedLongValues finalOrdCounts
private int[] finalSortedValues
private int[] finalOrdMap
public void addValue(int docID,
BytesRef value)
private void finishCurrentDoc()
public void finish(int maxDoc)
finish in class DocValuesWriterprivate void addOneValue(BytesRef value)
private void updateBytesUsed()
private long[][] sortDocValues(int maxDoc,
Sorter.DocMap sortMap,
SortedSetDocValues oldValues)
throws java.io.IOException
java.io.IOExceptionSorter.DocComparator getDocComparator(int maxDoc, SortField sortField) throws java.io.IOException
getDocComparator in class DocValuesWriterjava.io.IOExceptionpublic void flush(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) throws java.io.IOException
flush in class DocValuesWriterjava.io.IOExceptionDocIdSetIterator getDocIdSet()
getDocIdSet in class DocValuesWriter