final class Lucene70DocValuesConsumer extends DocValuesConsumer implements java.io.Closeable
Lucene70DocValuesFormat| Modifier and Type | Class and Description |
|---|---|
private static class |
Lucene70DocValuesConsumer.MinMaxTracker |
| Modifier and Type | Field and Description |
|---|---|
(package private) IndexOutput |
data |
(package private) int |
maxDoc |
(package private) IndexOutput |
meta |
| Constructor and Description |
|---|
Lucene70DocValuesConsumer(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,
GrowableByteArrayDataOutput buffer) |
private void |
writeTermsIndex(SortedSetDocValues values) |
private long[] |
writeValues(FieldInfo field,
DocValuesProducer valuesProducer) |
private void |
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, singletonViewIndexOutput data
IndexOutput meta
final int maxDoc
public Lucene70DocValuesConsumer(SegmentWriteState state, java.lang.String dataCodec, java.lang.String dataExtension, java.lang.String metaCodec, java.lang.String metaExtension) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void addNumericField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
DocValuesConsumeraddNumericField in class DocValuesConsumerfield - 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.IOExceptionprivate 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.IOExceptionprivate void writeValuesMultipleBlocks(SortedNumericDocValues values, long gcd) throws java.io.IOException
java.io.IOExceptionprivate void writeBlock(long[] values,
int length,
long gcd,
GrowableByteArrayDataOutput buffer)
throws java.io.IOException
java.io.IOExceptionpublic void addBinaryField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
DocValuesConsumeraddBinaryField in class DocValuesConsumerfield - 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
DocValuesConsumeraddSortedField in class DocValuesConsumerfield - 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.IOExceptionprivate void addTermsDict(SortedSetDocValues values) throws java.io.IOException
java.io.IOExceptionprivate void writeTermsIndex(SortedSetDocValues values) throws java.io.IOException
java.io.IOExceptionpublic void addSortedNumericField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
DocValuesConsumeraddSortedNumericField in class DocValuesConsumerfield - 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
DocValuesConsumeraddSortedSetField in class DocValuesConsumerfield - field informationvaluesProducer - produces the values to writejava.io.IOException - if an I/O error occurred.