- java.lang.Object
-
- org.apache.lucene.index.NormValuesWriter
-
class NormValuesWriter extends java.lang.Object
Buffers up pending long per doc, then flushes when segment flushes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
NormValuesWriter.BufferedNorms
-
Field Summary
Fields Modifier and Type Field Description private long
bytesUsed
private DocsWithFieldSet
docsWithField
private FieldInfo
fieldInfo
private Counter
iwBytesUsed
private int
lastDocID
private PackedLongValues.Builder
pending
-
Constructor Summary
Constructors Constructor Description NormValuesWriter(FieldInfo fieldInfo, Counter iwBytesUsed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(int docID, long value)
void
finish(int maxDoc)
void
flush(SegmentWriteState state, Sorter.DocMap sortMap, NormsConsumer normsConsumer)
private void
updateBytesUsed()
-
-
-
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
-
-