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.FieldData-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Bytes
ValuesSource.Bytes.Script, ValuesSource.Bytes.WithOrdinals
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.Numeric, ValuesSource.Range, ValuesSource.WithScript
-
-
Field Summary
Fields Modifier and Type Field Description static ValuesSource.Bytes.WithOrdinalsEMPTY
-
Constructor Summary
Constructors Constructor Description WithOrdinals()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DocValueBitsdocsWithValue(LeafReaderContext context)longglobalMaxOrd(IndexSearcher indexSearcher)abstract LongUnaryOperatorglobalOrdinalsMapping(LeafReaderContext context)Returns a mapping from segment ordinals to global ordinals.abstract SortedSetDocValuesglobalOrdinalsValues(LeafReaderContext context)abstract SortedSetDocValuesordinalsValues(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
bytesValues, needsScores
-
-
-
-
Field Detail
-
EMPTY
public static final ValuesSource.Bytes.WithOrdinals EMPTY
-
-
Method Detail
-
docsWithValue
public DocValueBits docsWithValue(LeafReaderContext context) throws IOException
- Overrides:
docsWithValuein classValuesSource.Bytes- Throws:
IOException
-
ordinalsValues
public abstract SortedSetDocValues ordinalsValues(LeafReaderContext context) throws IOException
- Throws:
IOException
-
globalOrdinalsValues
public abstract SortedSetDocValues globalOrdinalsValues(LeafReaderContext context) throws IOException
- Throws:
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.
-
globalOrdinalsMapping
public abstract LongUnaryOperator globalOrdinalsMapping(LeafReaderContext context) throws IOException
Returns a mapping from segment ordinals to global ordinals.- Throws:
IOException
-
globalMaxOrd
public long globalMaxOrd(IndexSearcher indexSearcher) throws IOException
- Throws:
IOException
-
-