Package org.apache.lucene.index
Class NormValuesWriter
- java.lang.Object
-
- org.apache.lucene.index.NormValuesWriter
-
class NormValuesWriter extends java.lang.ObjectBuffers up pending long per doc, then flushes when segment flushes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classNormValuesWriter.BufferedNorms
-
Field Summary
Fields Modifier and Type Field Description private longbytesUsedprivate DocsWithFieldSetdocsWithFieldprivate FieldInfofieldInfoprivate CounteriwBytesUsedprivate intlastDocIDprivate PackedLongValues.Builderpending
-
Constructor Summary
Constructors Constructor Description NormValuesWriter(FieldInfo fieldInfo, Counter iwBytesUsed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(int docID, long value)voidfinish(int maxDoc)voidflush(SegmentWriteState state, Sorter.DocMap sortMap, NormsConsumer normsConsumer)private voidupdateBytesUsed()
-
-
-
Field Detail
-
docsWithField
private DocsWithFieldSet docsWithField
-
pending
private PackedLongValues.Builder pending
-
iwBytesUsed
private final Counter iwBytesUsed
-
bytesUsed
private long bytesUsed
-
fieldInfo
private final FieldInfo fieldInfo
-
lastDocID
private int lastDocID
-
-
Method Detail
-
addValue
public void addValue(int docID, long value)
-
updateBytesUsed
private void updateBytesUsed()
-
finish
public void finish(int maxDoc)
-
flush
public void flush(SegmentWriteState state, Sorter.DocMap sortMap, NormsConsumer normsConsumer) throws java.io.IOException
- Throws:
java.io.IOException
-
-