Package org.apache.lucene.index
Class BinaryDocValuesWriter
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 class
private static class
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private final PagedBytes
private final DataOutput
private long
private DocsWithFieldSet
private final FieldInfo
private PackedLongValues
private final Counter
private int
private final PackedLongValues.Builder
private static final int
Maximum length for a binary field.private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
flush
(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) (package private) BinaryDocValues
private 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:
getDocValues
in classDocValuesWriter<BinaryDocValues>
-
flush
public void flush(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) throws IOException - Specified by:
flush
in classDocValuesWriter<BinaryDocValues>
- Throws:
IOException
-