class BinaryDocValuesWriter extends DocValuesWriter
| Modifier and Type | Class and Description |
|---|---|
private class |
BinaryDocValuesWriter.BytesIterator |
| Modifier and Type | Field and Description |
|---|---|
private int |
addedValues |
private static int |
BLOCK_BITS |
private PagedBytes |
bytes |
private DataOutput |
bytesOut |
private long |
bytesUsed |
private FixedBitSet |
docsWithField |
private FieldInfo |
fieldInfo |
private Counter |
iwBytesUsed |
private PackedLongValues.Builder |
lengths |
private static int |
MAX_LENGTH
Maximum length for a binary field.
|
| Constructor and Description |
|---|
BinaryDocValuesWriter(FieldInfo fieldInfo,
Counter iwBytesUsed) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(int docID,
BytesRef value) |
private long |
docsWithFieldBytesUsed() |
void |
finish(int maxDoc) |
void |
flush(SegmentWriteState state,
DocValuesConsumer dvConsumer) |
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 FixedBitSet docsWithField
private final FieldInfo fieldInfo
private int addedValues
private long bytesUsed
public void addValue(int docID,
BytesRef value)
private long docsWithFieldBytesUsed()
private void updateBytesUsed()
public void finish(int maxDoc)
finish in class DocValuesWriterpublic void flush(SegmentWriteState state, DocValuesConsumer dvConsumer) throws java.io.IOException
flush in class DocValuesWriterjava.io.IOException