java.lang.Object
org.apache.lucene.index.DocValuesWriter<SortedNumericDocValues>
org.apache.lucene.index.SortedNumericDocValuesWriter
Buffers up pending long[] per doc, sorts, then flushes when segment flushes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class(package private) static final class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate intprivate intprivate long[]private final DocsWithFieldSetprivate final FieldInfoprivate PackedLongValuesprivate PackedLongValuesprivate final Counterprivate final PackedLongValues.Builderprivate PackedLongValues.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddOneValue(long value) voidaddValue(int docID, long value) private voidvoidflush(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) (package private) SortedNumericDocValuesprivate SortedNumericDocValuesgetValues(PackedLongValues values, PackedLongValues valueCounts, DocsWithFieldSet docsWithField) private void
-
Field Details
-
pending
-
pendingCounts
-
docsWithField
-
iwBytesUsed
-
bytesUsed
private long bytesUsed -
fieldInfo
-
currentDoc
private int currentDoc -
currentValues
private long[] currentValues -
currentUpto
private int currentUpto -
finalValues
-
finalValuesCount
-
-
Constructor Details
-
SortedNumericDocValuesWriter
-
-
Method Details
-
addValue
public void addValue(int docID, long value) -
finishCurrentDoc
private void finishCurrentDoc() -
addOneValue
private void addOneValue(long value) -
updateBytesUsed
private void updateBytesUsed() -
getDocValues
SortedNumericDocValues getDocValues()- Specified by:
getDocValuesin classDocValuesWriter<SortedNumericDocValues>
-
getValues
private SortedNumericDocValues getValues(PackedLongValues values, PackedLongValues valueCounts, DocsWithFieldSet docsWithField) -
flush
public void flush(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) throws IOException - Specified by:
flushin classDocValuesWriter<SortedNumericDocValues>- Throws:
IOException
-