Package org.apache.lucene.index
Class SortedDocValuesWriter
java.lang.Object
org.apache.lucene.index.DocValuesWriter<SortedDocValues>
org.apache.lucene.index.SortedDocValuesWriter
Buffers up pending byte[] per doc, deref and sorting via
int ord, then flushes when segment flushes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate DocsWithFieldSetprivate final FieldInfoprivate int[]private PackedLongValuesprivate int[](package private) final BytesRefHashprivate final Counterprivate intprivate PackedLongValues.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddOneValue(BytesRef value) voidvoidflush(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) (package private) SortedDocValuesprivate int[]sortDocValues(int maxDoc, Sorter.DocMap sortMap, SortedDocValues oldValues) private void
-
Field Details
-
hash
-
pending
-
docsWithField
-
iwBytesUsed
-
bytesUsed
private long bytesUsed -
fieldInfo
-
lastDocID
private int lastDocID -
finalOrds
-
finalSortedValues
private int[] finalSortedValues -
finalOrdMap
private int[] finalOrdMap
-
-
Constructor Details
-
SortedDocValuesWriter
-
-
Method Details
-
addValue
-
addOneValue
-
updateBytesUsed
private void updateBytesUsed() -
getDocValues
SortedDocValues getDocValues()- Specified by:
getDocValuesin classDocValuesWriter<SortedDocValues>
-
sortDocValues
private int[] sortDocValues(int maxDoc, Sorter.DocMap sortMap, SortedDocValues oldValues) throws IOException - Throws:
IOException
-
flush
public void flush(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) throws IOException - Specified by:
flushin classDocValuesWriter<SortedDocValues>- Throws:
IOException
-