Class ValuesSource.Bytes.WithOrdinals.FieldData
java.lang.Object
org.elasticsearch.search.aggregations.support.ValuesSource
org.elasticsearch.search.aggregations.support.ValuesSource.Bytes
org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals
org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals.FieldData
- Enclosing class:
- ValuesSource.Bytes.WithOrdinals
public static class ValuesSource.Bytes.WithOrdinals.FieldData extends ValuesSource.Bytes.WithOrdinals
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals
ValuesSource.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.Histogram, ValuesSource.Numeric, ValuesSource.Range -
Field Summary
Fields Modifier and Type Field Description protected IndexOrdinalsFieldDataindexFieldDataFields inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals
EMPTY -
Constructor Summary
Constructors Constructor Description FieldData(IndexOrdinalsFieldData indexFieldData) -
Method Summary
Modifier and Type Method Description SortedBinaryDocValuesbytesValues(org.apache.lucene.index.LeafReaderContext context)Get the currentValuesSource.Bytes.WithScript.BytesValues.java.util.function.LongUnaryOperatorglobalOrdinalsMapping(org.apache.lucene.index.LeafReaderContext context)Returns a mapping from segment ordinals to global ordinals.org.apache.lucene.index.SortedSetDocValuesglobalOrdinalsValues(org.apache.lucene.index.LeafReaderContext context)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.WithOrdinals
docsWithValue, globalMaxOrd
-
Field Details
-
Constructor Details
-
Method Details
-
bytesValues
Description copied from class:ValuesSourceGet the currentValuesSource.Bytes.WithScript.BytesValues.- Specified by:
bytesValuesin classValuesSource
-
ordinalsValues
public org.apache.lucene.index.SortedSetDocValues ordinalsValues(org.apache.lucene.index.LeafReaderContext context)- Specified by:
ordinalsValuesin classValuesSource.Bytes.WithOrdinals
-
globalOrdinalsValues
public org.apache.lucene.index.SortedSetDocValues globalOrdinalsValues(org.apache.lucene.index.LeafReaderContext context)- Specified by:
globalOrdinalsValuesin classValuesSource.Bytes.WithOrdinals
-
supportsGlobalOrdinalsMapping
public boolean supportsGlobalOrdinalsMapping()Description copied from class:ValuesSource.Bytes.WithOrdinalsWhether this values source is able to provide a mapping between global and segment ordinals, by returning the underlyingOrdinalMap. If this method returns false, then callingValuesSource.Bytes.WithOrdinals.globalOrdinalsMapping(org.apache.lucene.index.LeafReaderContext)will result in anUnsupportedOperationException.- Overrides:
supportsGlobalOrdinalsMappingin classValuesSource.Bytes.WithOrdinals
-
globalOrdinalsMapping
public java.util.function.LongUnaryOperator globalOrdinalsMapping(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOExceptionDescription copied from class:ValuesSource.Bytes.WithOrdinalsReturns a mapping from segment ordinals to global ordinals.- Specified by:
globalOrdinalsMappingin classValuesSource.Bytes.WithOrdinals- Throws:
java.io.IOException
-