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() |
getMergeInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildResources
private 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.IOException
public NumericDocValues getNumeric(FieldInfo fieldInfo) throws java.io.IOException
DocValuesProducer
NumericDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getNumeric
in class DocValuesProducer
java.io.IOException
java.util.function.IntFunction<java.lang.Long> getNumericNonIterator(FieldInfo fieldInfo) throws java.io.IOException
java.io.IOException
private SimpleTextDocValuesReader.DocValuesIterator getNumericDocsWithField(FieldInfo fieldInfo) throws java.io.IOException
java.io.IOException
public BinaryDocValues getBinary(FieldInfo fieldInfo) throws java.io.IOException
DocValuesProducer
BinaryDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getBinary
in class DocValuesProducer
java.io.IOException
private SimpleTextDocValuesReader.DocValuesIterator getBinaryDocsWithField(FieldInfo fieldInfo) throws java.io.IOException
java.io.IOException
public SortedDocValues getSorted(FieldInfo fieldInfo) throws java.io.IOException
DocValuesProducer
SortedDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSorted
in class DocValuesProducer
java.io.IOException
public SortedNumericDocValues getSortedNumeric(FieldInfo field) throws java.io.IOException
DocValuesProducer
SortedNumericDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSortedNumeric
in class DocValuesProducer
java.io.IOException
public SortedSetDocValues getSortedSet(FieldInfo fieldInfo) throws java.io.IOException
DocValuesProducer
SortedSetDocValues
for this field.
The returned instance need not be thread-safe: it will only be
used by a single thread.getSortedSet
in class DocValuesProducer
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
private void readLine() throws java.io.IOException
java.io.IOException
private boolean startsWith(BytesRef prefix)
private java.lang.String stripPrefix(BytesRef prefix)
public long ramBytesUsed()
Accountable
public java.lang.String toString()
toString
in class java.lang.Object
public void checkIntegrity() throws java.io.IOException
DocValuesProducer
Note 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 DocValuesProducer
java.io.IOException