Class SimpleTextDocValuesWriter
java.lang.Object
org.apache.lucene.codecs.DocValuesConsumer
org.apache.lucene.codecs.simpletext.SimpleTextDocValuesWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) IndexOutput
(package private) static final BytesRef
(package private) static final BytesRef
(package private) static final BytesRef
(package private) static final BytesRef
(package private) static final BytesRef
(package private) final int
(package private) static final BytesRef
(package private) static final BytesRef
(package private) static final BytesRef
(package private) final BytesRefBuilder
(package private) static final BytesRef
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 fieldvoid
addSortedSetField
(FieldInfo field, DocValuesProducer valuesProducer) Writes pre-sorted set docvalues for a fieldvoid
close()
private void
doAddBinaryField
(FieldInfo field, DocValuesProducer valuesProducer) private boolean
private void
writeFieldEntry
(FieldInfo field, DocValuesType type) write the header for this fieldMethods inherited from class org.apache.lucene.codecs.DocValuesConsumer
isSingleValued, merge, mergeBinaryField, mergeNumericField, mergeSortedField, mergeSortedNumericField, mergeSortedSetField, singletonView
-
Field Details
-
END
-
FIELD
-
TYPE
-
MINVALUE
-
PATTERN
-
LENGTH
-
MAXLENGTH
-
NUMVALUES
-
ORDPATTERN
-
data
IndexOutput data -
scratch
-
numDocs
final int numDocs -
fieldsSeen
-
-
Constructor Details
-
SimpleTextDocValuesWriter
- Throws:
IOException
-
-
Method Details
-
fieldSeen
-
addNumericField
Description copied from class:DocValuesConsumer
Writes numeric docvalues for a field.- Specified by:
addNumericField
in classDocValuesConsumer
- Parameters:
field
- field informationvaluesProducer
- Numeric values to write.- Throws:
IOException
- if an I/O error occurred.
-
addBinaryField
Description copied from class:DocValuesConsumer
Writes binary docvalues for a field.- Specified by:
addBinaryField
in classDocValuesConsumer
- Parameters:
field
- field informationvaluesProducer
- Binary values to write.- Throws:
IOException
- if an I/O error occurred.
-
doAddBinaryField
- Throws:
IOException
-
addSortedField
Description copied from class:DocValuesConsumer
Writes pre-sorted binary docvalues for a field.- Specified by:
addSortedField
in classDocValuesConsumer
- Parameters:
field
- field informationvaluesProducer
- produces the values and ordinals to write- Throws:
IOException
- if an I/O error occurred.
-
addSortedNumericField
public void addSortedNumericField(FieldInfo field, DocValuesProducer valuesProducer) throws IOException Description copied from class:DocValuesConsumer
Writes pre-sorted numeric docvalues for a field- Specified by:
addSortedNumericField
in classDocValuesConsumer
- Parameters:
field
- field informationvaluesProducer
- produces the values to write- Throws:
IOException
- if an I/O error occurred.
-
addSortedSetField
Description copied from class:DocValuesConsumer
Writes pre-sorted set docvalues for a field- Specified by:
addSortedSetField
in classDocValuesConsumer
- Parameters:
field
- field informationvaluesProducer
- produces the values to write- Throws:
IOException
- if an I/O error occurred.
-
writeFieldEntry
write the header for this field- Throws:
IOException
-
close
- Throws:
IOException
-