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.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 protected IndexOrdinalsFieldData
indexFieldData
-
Fields 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 SortedBinaryDocValues
bytesValues(org.apache.lucene.index.LeafReaderContext context)
Get the currentValuesSource.WithScript.BytesValues
.java.util.function.LongUnaryOperator
globalOrdinalsMapping(org.apache.lucene.index.LeafReaderContext context)
Returns a mapping from segment ordinals to global ordinals.org.apache.lucene.index.SortedSetDocValues
globalOrdinalsValues(org.apache.lucene.index.LeafReaderContext context)
org.apache.lucene.index.SortedSetDocValues
ordinalsValues(org.apache.lucene.index.LeafReaderContext context)
boolean
supportsGlobalOrdinalsMapping()
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
-
Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
needsScores
-
-
-
-
Field Detail
-
indexFieldData
protected final IndexOrdinalsFieldData indexFieldData
-
-
Constructor Detail
-
FieldData
public FieldData(IndexOrdinalsFieldData indexFieldData)
-
-
Method Detail
-
bytesValues
public SortedBinaryDocValues bytesValues(org.apache.lucene.index.LeafReaderContext context)
Description copied from class:ValuesSource
Get the currentValuesSource.WithScript.BytesValues
.- Specified by:
bytesValues
in classValuesSource
-
ordinalsValues
public org.apache.lucene.index.SortedSetDocValues ordinalsValues(org.apache.lucene.index.LeafReaderContext context)
- Specified by:
ordinalsValues
in classValuesSource.Bytes.WithOrdinals
-
globalOrdinalsValues
public org.apache.lucene.index.SortedSetDocValues globalOrdinalsValues(org.apache.lucene.index.LeafReaderContext context)
- Specified by:
globalOrdinalsValues
in classValuesSource.Bytes.WithOrdinals
-
supportsGlobalOrdinalsMapping
public boolean supportsGlobalOrdinalsMapping()
Description copied from class:ValuesSource.Bytes.WithOrdinals
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 callingValuesSource.Bytes.WithOrdinals.globalOrdinalsMapping(org.apache.lucene.index.LeafReaderContext)
will result in anUnsupportedOperationException
.- Overrides:
supportsGlobalOrdinalsMapping
in classValuesSource.Bytes.WithOrdinals
-
globalOrdinalsMapping
public java.util.function.LongUnaryOperator globalOrdinalsMapping(org.apache.lucene.index.LeafReaderContext context) throws java.io.IOException
Description copied from class:ValuesSource.Bytes.WithOrdinals
Returns a mapping from segment ordinals to global ordinals.- Specified by:
globalOrdinalsMapping
in classValuesSource.Bytes.WithOrdinals
- Throws:
java.io.IOException
-
-