Class SimpleTextDocValuesReader
java.lang.Object
org.apache.lucene.codecs.DocValuesProducer
org.apache.lucene.codecs.simpletext.SimpleTextDocValuesReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Accountable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long(package private) final IndexInput(package private) final Map<String, SimpleTextDocValuesReader.OneField> (package private) final int(package private) final BytesRefBuilderFields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks consistency of this producervoidclose()ReturnsBinaryDocValuesfor this field.getBinaryDocsWithField(FieldInfo fieldInfo) getNumeric(FieldInfo fieldInfo) ReturnsNumericDocValuesfor this field.getNumericDocsWithField(FieldInfo fieldInfo) (package private) IntFunction<Long> getNumericNonIterator(FieldInfo fieldInfo) ReturnsSortedDocValuesfor this field.getSortedNumeric(FieldInfo field) ReturnsSortedNumericDocValuesfor this field.getSortedSet(FieldInfo fieldInfo) ReturnsSortedSetDocValuesfor this field.longReturn the memory usage of this object in bytes.private voidreadLine()Used only in ctor:private booleanstartsWith(BytesRef prefix) Used only in ctor:private StringstripPrefix(BytesRef prefix) Used only in ctor:toString()Methods inherited from class org.apache.lucene.codecs.DocValuesProducer
getMergeInstanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Field Details
-
BASE_RAM_BYTES_USED
private static final long BASE_RAM_BYTES_USED -
maxDoc
final int maxDoc -
data
-
scratch
-
fields
-
-
Constructor Details
-
SimpleTextDocValuesReader
- Throws:
IOException
-
-
Method Details
-
getNumeric
Description copied from class:DocValuesProducerReturnsNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getNumericin classDocValuesProducer- Throws:
IOException
-
getNumericNonIterator
- Throws:
IOException
-
getNumericDocsWithField
private SimpleTextDocValuesReader.DocValuesIterator getNumericDocsWithField(FieldInfo fieldInfo) throws IOException - Throws:
IOException
-
getBinary
Description copied from class:DocValuesProducerReturnsBinaryDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getBinaryin classDocValuesProducer- Throws:
IOException
-
getBinaryDocsWithField
private SimpleTextDocValuesReader.DocValuesIterator getBinaryDocsWithField(FieldInfo fieldInfo) throws IOException - Throws:
IOException
-
getSorted
Description copied from class:DocValuesProducerReturnsSortedDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSortedin classDocValuesProducer- Throws:
IOException
-
getSortedNumeric
Description copied from class:DocValuesProducerReturnsSortedNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSortedNumericin classDocValuesProducer- Throws:
IOException
-
getSortedSet
Description copied from class:DocValuesProducerReturnsSortedSetDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSortedSetin classDocValuesProducer- Throws:
IOException
-
close
- Throws:
IOException
-
readLine
Used only in ctor:- Throws:
IOException
-
startsWith
Used only in ctor: -
stripPrefix
Used only in ctor: -
ramBytesUsed
public long ramBytesUsed()Description copied from interface:AccountableReturn the memory usage of this object in bytes. Negative values are illegal. -
toString
-
checkIntegrity
Description copied from class:DocValuesProducerChecks 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:
checkIntegrityin classDocValuesProducer- Throws:
IOException
-