Class ValuesSource.Bytes.WithOrdinals
java.lang.Object
org.elasticsearch.search.aggregations.support.ValuesSource
org.elasticsearch.search.aggregations.support.ValuesSource.Bytes
org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals
- Direct Known Subclasses:
ValuesSource.Bytes.WithOrdinals.FieldData
- Enclosing class:
- ValuesSource.Bytes
public abstract static class ValuesSource.Bytes.WithOrdinals extends ValuesSource.Bytes
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValuesSource.Bytes.WithOrdinals.FieldDataNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Bytes
ValuesSource.Bytes.Script, ValuesSource.Bytes.WithOrdinals, ValuesSource.Bytes.WithScriptNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.Numeric, ValuesSource.Range -
Field Summary
Fields Modifier and Type Field Description static ValuesSource.Bytes.WithOrdinalsEMPTY -
Constructor Summary
Constructors Constructor Description WithOrdinals() -
Method Summary
Modifier and Type Method Description DocValueBitsdocsWithValue(org.apache.lucene.index.LeafReaderContext context)longglobalMaxOrd(org.apache.lucene.search.IndexSearcher indexSearcher)abstract java.util.function.LongUnaryOperatorglobalOrdinalsMapping(org.apache.lucene.index.LeafReaderContext context)Returns a mapping from segment ordinals to global ordinals.abstract org.apache.lucene.index.SortedSetDocValuesglobalOrdinalsValues(org.apache.lucene.index.LeafReaderContext context)booleanhasGlobalOrdinals()Check if this values source supports using global ordinalsabstract org.apache.lucene.index.SortedSetDocValuesordinalsValues(org.apache.lucene.index.LeafReaderContext context)booleansupportsGlobalOrdinalsMapping()Whether this values source is able to provide a mapping between global and segment ordinals, by returning the underlyingOrdinalMap.Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Bytes
roundingPreparerMethods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
bytesValues, needsScores
-
Field Details
-
Constructor Details
-
WithOrdinals
public WithOrdinals()
-
-
Method Details
-
docsWithValue
public DocValueBits docsWithValue(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException- Overrides:
docsWithValuein classValuesSource.Bytes- Throws:
java.io.IOException
-
ordinalsValues
public abstract org.apache.lucene.index.SortedSetDocValues ordinalsValues(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException- Throws:
java.io.IOException
-
globalOrdinalsValues
public abstract org.apache.lucene.index.SortedSetDocValues globalOrdinalsValues(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException- Throws:
java.io.IOException
-
supportsGlobalOrdinalsMapping
public boolean supportsGlobalOrdinalsMapping()Whether this values source is able to provide a mapping between global and segment ordinals, by returning the underlyingOrdinalMap. If this method returns false, then callingglobalOrdinalsMapping(org.apache.lucene.index.LeafReaderContext)will result in anUnsupportedOperationException. -
hasGlobalOrdinals
public boolean hasGlobalOrdinals()Description copied from class:ValuesSourceCheck if this values source supports using global ordinals- Overrides:
hasGlobalOrdinalsin classValuesSource
-
globalOrdinalsMapping
public abstract java.util.function.LongUnaryOperator globalOrdinalsMapping(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOExceptionReturns a mapping from segment ordinals to global ordinals.- Throws:
java.io.IOException
-
globalMaxOrd
public long globalMaxOrd(org.apache.lucene.search.IndexSearcher indexSearcher) throws java.io.IOException- Throws:
java.io.IOException
-