Class DocValuesIteratorCache.FieldDocValuesSupplier
- Enclosing class:
DocValuesIteratorCache
Instances of this class are specifically designed to support arbitrary-order value retrieval, (e.g., useDocValuesAsStored, ExportWriter) and should generally not be used for ordered retrieval (although ordered retrieval would work perfectly fine, and would add only minimal overhead).
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.index.BinaryDocValuesgetBinaryDocValues(int localId, org.apache.lucene.index.LeafReader leafReader, int leafOrd) Returns docValues for the specified doc id in the specified reader, if the specified doc holds docValues for thisDocValuesIteratorCache.FieldDocValuesSupplierinstance, otherwise returns null.org.apache.lucene.index.NumericDocValuesgetNumericDocValues(int localId, org.apache.lucene.index.LeafReader leafReader, int leafOrd) Returns docValues for the specified doc id in the specified reader, if the specified doc holds docValues for thisDocValuesIteratorCache.FieldDocValuesSupplierinstance, otherwise returns null.org.apache.lucene.index.SortedDocValuesgetSortedDocValues(int localId, org.apache.lucene.index.LeafReader leafReader, int leafOrd) Returns docValues for the specified doc id in the specified reader, if the specified doc holds docValues for thisDocValuesIteratorCache.FieldDocValuesSupplierinstance, otherwise returns null.org.apache.lucene.index.SortedNumericDocValuesgetSortedNumericDocValues(int localId, org.apache.lucene.index.LeafReader leafReader, int leafOrd) Returns docValues for the specified doc id in the specified reader, if the specified doc holds docValues for thisDocValuesIteratorCache.FieldDocValuesSupplierinstance, otherwise returns null.org.apache.lucene.index.SortedSetDocValuesgetSortedSetDocValues(int localId, org.apache.lucene.index.LeafReader leafReader, int leafOrd) Returns docValues for the specified doc id in the specified reader, if the specified doc holds docValues for thisDocValuesIteratorCache.FieldDocValuesSupplierinstance, otherwise returns null.
-
Field Details
-
schemaField
-
type
public final org.apache.lucene.index.DocValuesType type
-
-
Method Details
-
getNumericDocValues
public org.apache.lucene.index.NumericDocValues getNumericDocValues(int localId, org.apache.lucene.index.LeafReader leafReader, int leafOrd) throws IOException Returns docValues for the specified doc id in the specified reader, if the specified doc holds docValues for thisDocValuesIteratorCache.FieldDocValuesSupplierinstance, otherwise returns null.If a non-null value is returned, it will already positioned at the specified docId.
- Parameters:
localId- leaf-scoped docIdleafReader- reader containing docIdleafOrd- top-level ord of the specified reader- Throws:
IOException
-
getBinaryDocValues
public org.apache.lucene.index.BinaryDocValues getBinaryDocValues(int localId, org.apache.lucene.index.LeafReader leafReader, int leafOrd) throws IOException Returns docValues for the specified doc id in the specified reader, if the specified doc holds docValues for thisDocValuesIteratorCache.FieldDocValuesSupplierinstance, otherwise returns null.If a non-null value is returned, it will already positioned at the specified docId.
- Parameters:
localId- leaf-scoped docIdleafReader- reader containing docIdleafOrd- top-level ord of the specified reader- Throws:
IOException
-
getSortedDocValues
public org.apache.lucene.index.SortedDocValues getSortedDocValues(int localId, org.apache.lucene.index.LeafReader leafReader, int leafOrd) throws IOException Returns docValues for the specified doc id in the specified reader, if the specified doc holds docValues for thisDocValuesIteratorCache.FieldDocValuesSupplierinstance, otherwise returns null.If a non-null value is returned, it will already positioned at the specified docId.
- Parameters:
localId- leaf-scoped docIdleafReader- reader containing docIdleafOrd- top-level ord of the specified reader- Throws:
IOException
-
getSortedNumericDocValues
public org.apache.lucene.index.SortedNumericDocValues getSortedNumericDocValues(int localId, org.apache.lucene.index.LeafReader leafReader, int leafOrd) throws IOException Returns docValues for the specified doc id in the specified reader, if the specified doc holds docValues for thisDocValuesIteratorCache.FieldDocValuesSupplierinstance, otherwise returns null.If a non-null value is returned, it will already positioned at the specified docId, and with values (
SortedNumericDocValues.nextValue()) not yet consumed.- Parameters:
localId- leaf-scoped docIdleafReader- reader containing docIdleafOrd- top-level ord of the specified reader- Throws:
IOException
-
getSortedSetDocValues
public org.apache.lucene.index.SortedSetDocValues getSortedSetDocValues(int localId, org.apache.lucene.index.LeafReader leafReader, int leafOrd) throws IOException Returns docValues for the specified doc id in the specified reader, if the specified doc holds docValues for thisDocValuesIteratorCache.FieldDocValuesSupplierinstance, otherwise returns null.If a non-null value is returned, it will already positioned at the specified docId, and with ords (
SortedSetDocValues.nextOrd()) not yet consumed.- Parameters:
localId- leaf-scoped docIdleafReader- reader containing docIdleafOrd- top-level ord of the specified reader- Throws:
IOException
-