Package org.apache.lucene.index
Class NumericDocValuesWriter
java.lang.Object
org.apache.lucene.index.DocValuesWriter<NumericDocValues>
org.apache.lucene.index.NumericDocValuesWriter
Buffers up pending long per doc, then flushes when segment flushes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate DocsWithFieldSetprivate final FieldInfoprivate PackedLongValuesprivate final Counterprivate intprivate final PackedLongValues.Builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(int docID, long value) voidflush(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) (package private) NumericDocValues(package private) static NumericDocValuesWriter.NumericDVssortDocValues(int maxDoc, Sorter.DocMap sortMap, NumericDocValues oldDocValues) private void
-
Field Details
-
pending
-
finalValues
-
iwBytesUsed
-
bytesUsed
private long bytesUsed -
docsWithField
-
fieldInfo
-
lastDocID
private int lastDocID
-
-
Constructor Details
-
NumericDocValuesWriter
-
-
Method Details
-
addValue
public void addValue(int docID, long value) -
updateBytesUsed
private void updateBytesUsed() -
getDocValues
NumericDocValues getDocValues()- Specified by:
getDocValuesin classDocValuesWriter<NumericDocValues>
-
sortDocValues
static NumericDocValuesWriter.NumericDVs sortDocValues(int maxDoc, Sorter.DocMap sortMap, NumericDocValues oldDocValues) throws IOException - Throws:
IOException
-
flush
public void flush(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) throws IOException - Specified by:
flushin classDocValuesWriter<NumericDocValues>- Throws:
IOException
-