class SimpleTextDocValuesWriter extends DocValuesConsumer
Modifier and Type | Field and Description |
---|---|
(package private) IndexOutput |
data |
(package private) static BytesRef |
END |
(package private) static BytesRef |
FIELD |
private java.util.Set<java.lang.String> |
fieldsSeen |
(package private) static BytesRef |
LENGTH |
(package private) static BytesRef |
MAXLENGTH |
(package private) static BytesRef |
MINVALUE |
(package private) int |
numDocs |
(package private) static BytesRef |
NUMVALUES |
(package private) static BytesRef |
ORDPATTERN |
(package private) static BytesRef |
PATTERN |
(package private) BytesRefBuilder |
scratch |
(package private) static BytesRef |
TYPE |
Constructor and Description |
---|
SimpleTextDocValuesWriter(SegmentWriteState state,
java.lang.String ext) |
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
|
void |
close() |
private void |
doAddBinaryField(FieldInfo field,
DocValuesProducer valuesProducer) |
private boolean |
fieldSeen(java.lang.String field) |
private void |
writeFieldEntry(FieldInfo field,
DocValuesType type)
write the header for this field
|
isSingleValued, merge, mergeBinaryField, mergeNumericField, mergeSortedField, mergeSortedNumericField, mergeSortedSetField, singletonView
static final BytesRef END
static final BytesRef FIELD
static final BytesRef TYPE
static final BytesRef MINVALUE
static final BytesRef PATTERN
static final BytesRef LENGTH
static final BytesRef MAXLENGTH
static final BytesRef NUMVALUES
static final BytesRef ORDPATTERN
IndexOutput data
final BytesRefBuilder scratch
final int numDocs
private final java.util.Set<java.lang.String> fieldsSeen
public SimpleTextDocValuesWriter(SegmentWriteState state, java.lang.String ext) throws java.io.IOException
java.io.IOException
private boolean fieldSeen(java.lang.String field)
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.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.private void doAddBinaryField(FieldInfo field, DocValuesProducer valuesProducer) throws java.io.IOException
java.io.IOException
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.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.private void writeFieldEntry(FieldInfo field, DocValuesType type) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException