Package org.apache.lucene.index
Class SortedNumericDocValuesWriter
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 long
private int
private int
private long[]
private final DocsWithFieldSet
private final FieldInfo
private PackedLongValues
private PackedLongValues
private final Counter
private final PackedLongValues.Builder
private PackedLongValues.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addOneValue
(long value) void
addValue
(int docID, long value) private void
void
flush
(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) (package private) SortedNumericDocValues
private SortedNumericDocValues
getValues
(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:
getDocValues
in 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:
flush
in classDocValuesWriter<SortedNumericDocValues>
- Throws:
IOException
-