Module org.elasticsearch.server
Class AbstractTSDBDocValuesProducer.BaseSortedDocValues
java.lang.Object
org.apache.lucene.search.DocIdSetIterator
org.apache.lucene.index.SortedDocValues
org.elasticsearch.index.codec.tsdb.AbstractTSDBDocValuesProducer.BaseSortedDocValues
- All Implemented Interfaces:
PartitionedDocValues,BlockLoader.OptionalColumnAtATimeReader
- Enclosing class:
AbstractTSDBDocValuesProducer
public abstract class AbstractTSDBDocValuesProducer.BaseSortedDocValues
extends org.apache.lucene.index.SortedDocValues
implements BlockLoader.OptionalColumnAtATimeReader, PartitionedDocValues
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.codec.tsdb.PartitionedDocValues
PartitionedDocValues.PrefixPartitions -
Field Summary
Fields inherited from class org.apache.lucene.search.DocIdSetIterator
NO_MORE_DOCS -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanadvanceExact(int arg0) intorg.apache.lucene.util.BytesReflookupOrd(int ord) intlookupTerm(org.apache.lucene.util.BytesRef key) intThe number of bits used in prefix partitionsReturns the prefixed partition from the doc-values of this field if exists.org.apache.lucene.index.TermsEnumtryRead(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset, boolean nullsFiltered, BlockDocValuesReader.ToDouble toDouble, boolean toInt, boolean binaryMultiValuedFormat) Attempts to read the values of all documents indocsReturnsnullif unable to load the values.tryReadAHead(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset) Methods inherited from class org.apache.lucene.index.SortedDocValues
intersect, ordValueMethods inherited from class org.apache.lucene.search.DocIdSetIterator
advance, all, cost, docID, docIDRunEnd, empty, intoBitSet, nextDoc, range, slowAdvanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.mapper.BlockLoader.OptionalColumnAtATimeReader
tryContainsIterator
-
Method Details
-
getValueCount
public int getValueCount()- Specified by:
getValueCountin classorg.apache.lucene.index.SortedDocValues
-
lookupOrd
- Specified by:
lookupOrdin classorg.apache.lucene.index.SortedDocValues- Throws:
IOException
-
lookupTerm
- Overrides:
lookupTermin classorg.apache.lucene.index.SortedDocValues- Throws:
IOException
-
termsEnum
- Overrides:
termsEnumin classorg.apache.lucene.index.SortedDocValues- Throws:
IOException
-
tryRead
public BlockLoader.Block tryRead(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset, boolean nullsFiltered, BlockDocValuesReader.ToDouble toDouble, boolean toInt, boolean binaryMultiValuedFormat) throws IOException Description copied from interface:BlockLoader.OptionalColumnAtATimeReaderAttempts to read the values of all documents indocsReturnsnullif unable to load the values.- Specified by:
tryReadin interfaceBlockLoader.OptionalColumnAtATimeReader- Parameters:
nullsFiltered- iftrue, then target docs are guaranteed to have a value for the field. seeBlockLoader.ColumnAtATimeReader.read(BlockFactory, Docs, int, boolean)toDouble- a function to convert long values to double, or null if no conversion is needed/supportedtoInt- whether to convert to int in case int block / vector is neededbinaryMultiValuedFormat- whether the multi-valued binary format is used (CustomBinaryDocValuesField).- Throws:
IOException
-
tryReadAHead
public BlockLoader.Block tryReadAHead(BlockLoader.BlockFactory factory, BlockLoader.Docs docs, int offset) throws IOException - Throws:
IOException
-
prefixPartitionBits
public int prefixPartitionBits()Description copied from interface:PartitionedDocValuesThe number of bits used in prefix partitions- Specified by:
prefixPartitionBitsin interfacePartitionedDocValues
-
prefixPartitions
public PartitionedDocValues.PrefixPartitions prefixPartitions(PartitionedDocValues.PrefixPartitions reused) throws IOException Description copied from interface:PartitionedDocValuesReturns the prefixed partition from the doc-values of this field if exists.- Specified by:
prefixPartitionsin interfacePartitionedDocValues- Parameters:
reused- an existing prefix partitions can be reused to avoid allocating memory- Throws:
IOException
-
advanceExact
- Throws:
IOException
-