java.lang.Object
org.apache.lucene.index.DocValuesWriter<BinaryDocValues>
org.apache.lucene.index.BinaryDocValuesWriter
Buffers up pending byte[] per doc, then flushes when segment flushes.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classprivate static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final PagedBytesprivate final DataOutputprivate longprivate DocsWithFieldSetprivate final FieldInfoprivate PackedLongValuesprivate final Counterprivate intprivate final PackedLongValues.Builderprivate static final intMaximum length for a binary field.private int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidflush(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) (package private) BinaryDocValuesprivate void
-
Field Details
-
MAX_LENGTH
private static final int MAX_LENGTHMaximum length for a binary field. -
BLOCK_BITS
private static final int BLOCK_BITS- See Also:
-
bytes
-
bytesOut
-
iwBytesUsed
-
lengths
-
docsWithField
-
fieldInfo
-
bytesUsed
private long bytesUsed -
lastDocID
private int lastDocID -
maxLength
private int maxLength -
finalLengths
-
-
Constructor Details
-
BinaryDocValuesWriter
-
-
Method Details
-
addValue
-
updateBytesUsed
private void updateBytesUsed() -
getDocValues
BinaryDocValues getDocValues()- Specified by:
getDocValuesin classDocValuesWriter<BinaryDocValues>
-
flush
public void flush(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) throws IOException - Specified by:
flushin classDocValuesWriter<BinaryDocValues>- Throws:
IOException
-