Class SimpleTextDocValuesReader
java.lang.Object
org.apache.lucene.codecs.DocValuesProducer
org.apache.lucene.codecs.simpletext.SimpleTextDocValuesReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final IndexInput
(package private) final Map<String,
SimpleTextDocValuesReader.OneField> (package private) final int
(package private) final BytesRefBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Checks consistency of this producervoid
close()
ReturnsBinaryDocValues
for this field.getBinaryDocsWithField
(FieldInfo fieldInfo) getNumeric
(FieldInfo fieldInfo) ReturnsNumericDocValues
for this field.getNumericDocsWithField
(FieldInfo fieldInfo) (package private) IntFunction<Long>
getNumericNonIterator
(FieldInfo fieldInfo) ReturnsSortedDocValues
for this field.getSortedNumeric
(FieldInfo field) ReturnsSortedNumericDocValues
for this field.getSortedSet
(FieldInfo fieldInfo) ReturnsSortedSetDocValues
for this field.private void
readLine()
Used only in ctor:private boolean
startsWith
(BytesRef prefix) Used only in ctor:private String
stripPrefix
(BytesRef prefix) Used only in ctor:toString()
Methods inherited from class org.apache.lucene.codecs.DocValuesProducer
getMergeInstance
-
Field Details
-
maxDoc
final int maxDoc -
data
-
scratch
-
fields
-
-
Constructor Details
-
SimpleTextDocValuesReader
- Throws:
IOException
-
-
Method Details
-
getNumeric
Description copied from class:DocValuesProducer
ReturnsNumericDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.NUMERIC
. The return value is nevernull
.- Specified by:
getNumeric
in classDocValuesProducer
- Throws:
IOException
-
getNumericNonIterator
- Throws:
IOException
-
getNumericDocsWithField
private SimpleTextDocValuesReader.DocValuesIterator getNumericDocsWithField(FieldInfo fieldInfo) throws IOException - Throws:
IOException
-
getBinary
Description copied from class:DocValuesProducer
ReturnsBinaryDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.BINARY
. The return value is nevernull
.- Specified by:
getBinary
in classDocValuesProducer
- Throws:
IOException
-
getBinaryDocsWithField
private SimpleTextDocValuesReader.DocValuesIterator getBinaryDocsWithField(FieldInfo fieldInfo) throws IOException - Throws:
IOException
-
getSorted
Description copied from class:DocValuesProducer
ReturnsSortedDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.SORTED
. The return value is nevernull
.- Specified by:
getSorted
in classDocValuesProducer
- Throws:
IOException
-
getSortedNumeric
Description copied from class:DocValuesProducer
ReturnsSortedNumericDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.SORTED_NUMERIC
. The return value is nevernull
.- Specified by:
getSortedNumeric
in classDocValuesProducer
- Throws:
IOException
-
getSortedSet
Description copied from class:DocValuesProducer
ReturnsSortedSetDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.SORTED_SET
. The return value is nevernull
.- Specified by:
getSortedSet
in classDocValuesProducer
- Throws:
IOException
-
close
- Throws:
IOException
-
readLine
Used only in ctor:- Throws:
IOException
-
startsWith
Used only in ctor: -
stripPrefix
Used only in ctor: -
toString
-
checkIntegrity
Description copied from class:DocValuesProducer
Checks consistency of this producerNote that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
- Specified by:
checkIntegrity
in classDocValuesProducer
- Throws:
IOException
-