class SimpleTextDocValuesReader extends DocValuesProducer
| Modifier and Type | Class and Description |
|---|---|
private static class |
SimpleTextDocValuesReader.DocValuesIterator |
(package private) static class |
SimpleTextDocValuesReader.OneField |
| Modifier and Type | Field and Description |
|---|---|
private static long |
BASE_RAM_BYTES_USED |
(package private) IndexInput |
data |
(package private) java.util.Map<java.lang.String,SimpleTextDocValuesReader.OneField> |
fields |
(package private) int |
maxDoc |
(package private) BytesRefBuilder |
scratch |
| Constructor and Description |
|---|
SimpleTextDocValuesReader(SegmentReadState state,
java.lang.String ext) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIntegrity()
Checks consistency of this producer
|
void |
close() |
BinaryDocValues |
getBinary(FieldInfo fieldInfo)
Returns
BinaryDocValues for this field. |
private SimpleTextDocValuesReader.DocValuesIterator |
getBinaryDocsWithField(FieldInfo fieldInfo) |
NumericDocValues |
getNumeric(FieldInfo fieldInfo)
Returns
NumericDocValues for this field. |
private SimpleTextDocValuesReader.DocValuesIterator |
getNumericDocsWithField(FieldInfo fieldInfo) |
(package private) java.util.function.IntFunction<java.lang.Long> |
getNumericNonIterator(FieldInfo fieldInfo) |
SortedDocValues |
getSorted(FieldInfo fieldInfo)
Returns
SortedDocValues for this field. |
SortedNumericDocValues |
getSortedNumeric(FieldInfo field)
Returns
SortedNumericDocValues for this field. |
SortedSetDocValues |
getSortedSet(FieldInfo fieldInfo)
Returns
SortedSetDocValues for this field. |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
private void |
readLine()
Used only in ctor:
|
private boolean |
startsWith(BytesRef prefix)
Used only in ctor:
|
private java.lang.String |
stripPrefix(BytesRef prefix)
Used only in ctor:
|
java.lang.String |
toString() |
getMergeInstanceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildResourcesprivate static final long BASE_RAM_BYTES_USED
final int maxDoc
final IndexInput data
final BytesRefBuilder scratch
final java.util.Map<java.lang.String,SimpleTextDocValuesReader.OneField> fields
public SimpleTextDocValuesReader(SegmentReadState state, java.lang.String ext) throws java.io.IOException
java.io.IOExceptionpublic NumericDocValues getNumeric(FieldInfo fieldInfo) throws java.io.IOException
DocValuesProducerNumericDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getNumeric in class DocValuesProducerjava.io.IOExceptionjava.util.function.IntFunction<java.lang.Long> getNumericNonIterator(FieldInfo fieldInfo) throws java.io.IOException
java.io.IOExceptionprivate SimpleTextDocValuesReader.DocValuesIterator getNumericDocsWithField(FieldInfo fieldInfo) throws java.io.IOException
java.io.IOExceptionpublic BinaryDocValues getBinary(FieldInfo fieldInfo) throws java.io.IOException
DocValuesProducerBinaryDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getBinary in class DocValuesProducerjava.io.IOExceptionprivate SimpleTextDocValuesReader.DocValuesIterator getBinaryDocsWithField(FieldInfo fieldInfo) throws java.io.IOException
java.io.IOExceptionpublic SortedDocValues getSorted(FieldInfo fieldInfo) throws java.io.IOException
DocValuesProducerSortedDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSorted in class DocValuesProducerjava.io.IOExceptionpublic SortedNumericDocValues getSortedNumeric(FieldInfo field) throws java.io.IOException
DocValuesProducerSortedNumericDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSortedNumeric in class DocValuesProducerjava.io.IOExceptionpublic SortedSetDocValues getSortedSet(FieldInfo fieldInfo) throws java.io.IOException
DocValuesProducerSortedSetDocValues for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSortedSet in class DocValuesProducerjava.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionprivate void readLine()
throws java.io.IOException
java.io.IOExceptionprivate boolean startsWith(BytesRef prefix)
private java.lang.String stripPrefix(BytesRef prefix)
public long ramBytesUsed()
Accountablepublic java.lang.String toString()
toString in class java.lang.Objectpublic void checkIntegrity()
throws java.io.IOException
DocValuesProducerNote that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
checkIntegrity in class DocValuesProducerjava.io.IOException