Class CellIdSource
- java.lang.Object
-
- org.elasticsearch.search.aggregations.support.ValuesSource
-
- org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
-
- org.elasticsearch.search.aggregations.bucket.geogrid.CellIdSource
-
public class CellIdSource extends ValuesSource.Numeric
Wrapper class to help convertMultiGeoPointValuesto numeric long values for bucketing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCellIdSource.GeoPointLongEncoderThe encoder to use to convert a geopoint's (lon, lat, precision) into a long-encoded bucket key for aggregating.-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
ValuesSource.Numeric.FieldData, ValuesSource.Numeric.Script, ValuesSource.Numeric.WithScript
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.Numeric, ValuesSource.Range
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
EMPTY
-
-
Constructor Summary
Constructors Constructor Description CellIdSource(ValuesSource.GeoPoint valuesSource, int precision, CellIdSource.GeoPointLongEncoder encoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedBinaryDocValuesbytesValues(LeafReaderContext ctx)Get the currentValuesSource.WithScript.BytesValues.SortedNumericDoubleValuesdoubleValues(LeafReaderContext ctx)Get the currentSortedNumericDoubleValues.booleanisFloatingPoint()Whether the underlying data is floating-point or not.SortedNumericDocValueslongValues(LeafReaderContext ctx)Get the currentSortedNumericDocValues.intprecision()-
Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
docsWithValue
-
Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
needsScores
-
-
-
-
Constructor Detail
-
CellIdSource
public CellIdSource(ValuesSource.GeoPoint valuesSource, int precision, CellIdSource.GeoPointLongEncoder encoder)
-
-
Method Detail
-
precision
public int precision()
-
isFloatingPoint
public boolean isFloatingPoint()
Description copied from class:ValuesSource.NumericWhether the underlying data is floating-point or not.- Specified by:
isFloatingPointin classValuesSource.Numeric
-
longValues
public SortedNumericDocValues longValues(LeafReaderContext ctx)
Description copied from class:ValuesSource.NumericGet the currentSortedNumericDocValues.- Specified by:
longValuesin classValuesSource.Numeric
-
doubleValues
public SortedNumericDoubleValues doubleValues(LeafReaderContext ctx)
Description copied from class:ValuesSource.NumericGet the currentSortedNumericDoubleValues.- Specified by:
doubleValuesin classValuesSource.Numeric
-
bytesValues
public SortedBinaryDocValues bytesValues(LeafReaderContext ctx)
Description copied from class:ValuesSourceGet the currentValuesSource.WithScript.BytesValues.- Specified by:
bytesValuesin classValuesSource
-
-