final class Lucene80DocValuesConsumer extends DocValuesConsumer implements java.io.Closeable
Lucene80DocValuesFormat
Modifier and Type | Class and Description |
---|---|
private static class |
Lucene80DocValuesConsumer.MinMaxTracker |
Modifier and Type | Field and Description |
---|---|
(package private) IndexOutput |
data |
(package private) int |
maxDoc |
(package private) IndexOutput |
meta |
Constructor and Description |
---|
Lucene80DocValuesConsumer(SegmentWriteState state,
java.lang.String dataCodec,
java.lang.String dataExtension,
java.lang.String metaCodec,
java.lang.String metaExtension)
expert: Creates a new writer
|
Modifier and Type | Method and Description |
---|---|
void |
addBinaryField(FieldInfo field,
DocValuesProducer valuesProducer)
Writes binary docvalues for a field.
|
void |
addNumericField(FieldInfo field,
DocValuesProducer valuesProducer)
Writes numeric docvalues for a field.
|
void |
addSortedField(FieldInfo field,
DocValuesProducer valuesProducer)
Writes pre-sorted binary docvalues for a field.
|
void |
addSortedNumericField(FieldInfo field,
DocValuesProducer valuesProducer)
Writes pre-sorted numeric docvalues for a field
|
void |
addSortedSetField(FieldInfo field,
DocValuesProducer valuesProducer)
Writes pre-sorted set docvalues for a field
|
private void |
addTermsDict(SortedSetDocValues values) |
void |
close() |
private void |
doAddSortedField(FieldInfo field,
DocValuesProducer valuesProducer) |
private void |
writeBlock(long[] values,
int length,
long gcd,
ByteBuffersDataOutput buffer) |
private void |
writeTermsIndex(SortedSetDocValues values) |
private long[] |
writeValues(FieldInfo field,
DocValuesProducer valuesProducer) |
private long |
writeValuesMultipleBlocks(SortedNumericDocValues values,
long gcd) |
private void |
writeValuesSingleBlock(SortedNumericDocValues values,
long numValues,
int numBitsPerValue,
long min,
long gcd,
java.util.Map<java.lang.Long,java.lang.Integer> encode) |
isSingleValued, merge, mergeBinaryField, mergeNumericField, mergeSortedField, mergeSortedNumericField, mergeSortedSetField, singletonView
IndexOutput data
IndexOutput meta
final int maxDoc
public Lucene80DocValuesConsumer(SegmentWriteState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public void addNumericField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
DocValuesConsumer
addNumericField
in class DocValuesConsumer
field
- field informationvaluesProducer
- Numeric values to write.java.io.IOException
- if an I/O error occurred.private long[] writeValues(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
java.io.IOException
private void writeValuesSingleBlock(SortedNumericDocValues values, long numValues, int numBitsPerValue, long min, long gcd, java.util.Map<java.lang.Long,java.lang.Integer> encode) throws java.io.IOException
java.io.IOException
private long writeValuesMultipleBlocks(SortedNumericDocValues values, long gcd) throws java.io.IOException
java.io.IOException
private void writeBlock(long[] values, int length, long gcd, ByteBuffersDataOutput buffer) throws java.io.IOException
java.io.IOException
public void addBinaryField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
DocValuesConsumer
addBinaryField
in class DocValuesConsumer
field
- field informationvaluesProducer
- Binary values to write.java.io.IOException
- if an I/O error occurred.public void addSortedField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
DocValuesConsumer
addSortedField
in class DocValuesConsumer
field
- field informationvaluesProducer
- produces the values and ordinals to writejava.io.IOException
- if an I/O error occurred.private void doAddSortedField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
java.io.IOException
private void addTermsDict(SortedSetDocValues values) throws java.io.IOException
java.io.IOException
private void writeTermsIndex(SortedSetDocValues values) throws java.io.IOException
java.io.IOException
public void addSortedNumericField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
DocValuesConsumer
addSortedNumericField
in class DocValuesConsumer
field
- field informationvaluesProducer
- produces the values to writejava.io.IOException
- if an I/O error occurred.public void addSortedSetField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
DocValuesConsumer
addSortedSetField
in class DocValuesConsumer
field
- field informationvaluesProducer
- produces the values to writejava.io.IOException
- if an I/O error occurred.