class BinaryDocValuesWriter extends DocValuesWriter
Modifier and Type | Class and Description |
---|---|
private static class |
BinaryDocValuesWriter.BufferedBinaryDocValues |
Modifier and Type | Field and Description |
---|---|
private static int |
BLOCK_BITS |
private PagedBytes |
bytes |
private DataOutput |
bytesOut |
private long |
bytesUsed |
private DocsWithFieldSet |
docsWithField |
private FieldInfo |
fieldInfo |
private Counter |
iwBytesUsed |
private int |
lastDocID |
private PackedLongValues.Builder |
lengths |
private static int |
MAX_LENGTH
Maximum length for a binary field.
|
private int |
maxLength |
Constructor and Description |
---|
BinaryDocValuesWriter(FieldInfo fieldInfo,
Counter iwBytesUsed) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(int docID,
BytesRef value) |
void |
finish(int maxDoc) |
void |
flush(SegmentWriteState state,
Sorter.DocMap sortMap,
DocValuesConsumer dvConsumer) |
(package private) Sorter.DocComparator |
getDocComparator(int numDoc,
SortField sortField) |
(package private) DocIdSetIterator |
getDocIdSet() |
private SortingLeafReader.CachedBinaryDVs |
sortDocValues(int maxDoc,
Sorter.DocMap sortMap,
BinaryDocValues oldValues) |
private void |
updateBytesUsed() |
private static final int MAX_LENGTH
private static final int BLOCK_BITS
private final PagedBytes bytes
private final DataOutput bytesOut
private final Counter iwBytesUsed
private final PackedLongValues.Builder lengths
private DocsWithFieldSet docsWithField
private final FieldInfo fieldInfo
private long bytesUsed
private int lastDocID
private int maxLength
public void addValue(int docID, BytesRef value)
private void updateBytesUsed()
public void finish(int maxDoc)
finish
in class DocValuesWriter
private SortingLeafReader.CachedBinaryDVs sortDocValues(int maxDoc, Sorter.DocMap sortMap, BinaryDocValues oldValues) throws java.io.IOException
java.io.IOException
Sorter.DocComparator getDocComparator(int numDoc, SortField sortField) throws java.io.IOException
getDocComparator
in class DocValuesWriter
java.io.IOException
public void flush(SegmentWriteState state, Sorter.DocMap sortMap, DocValuesConsumer dvConsumer) throws java.io.IOException
flush
in class DocValuesWriter
java.io.IOException
DocIdSetIterator getDocIdSet()
getDocIdSet
in class DocValuesWriter