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 convert
MultiGeoPointValues
to 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.WithScriptNested 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, GeoBoundingBox geoBoundingBox, CellIdSource.GeoPointLongEncoder encoder) -
Method Summary
Modifier and Type Method Description SortedBinaryDocValuesbytesValues(org.apache.lucene.index.LeafReaderContext ctx)Get the currentValuesSource.Bytes.WithScript.BytesValues.SortedNumericDoubleValuesdoubleValues(org.apache.lucene.index.LeafReaderContext ctx)Get the currentSortedNumericDoubleValues.booleanisFloatingPoint()Whether the underlying data is floating-point or not.org.apache.lucene.index.SortedNumericDocValueslongValues(org.apache.lucene.index.LeafReaderContext ctx)Get the currentSortedNumericDocValues.intprecision()Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
docsWithValue, roundingPreparerMethods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
hasGlobalOrdinals, needsScores
-
Constructor Details
-
CellIdSource
public CellIdSource(ValuesSource.GeoPoint valuesSource, int precision, GeoBoundingBox geoBoundingBox, CellIdSource.GeoPointLongEncoder encoder)
-
-
Method Details
-
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 org.apache.lucene.index.SortedNumericDocValues longValues(org.apache.lucene.index.LeafReaderContext ctx)Description copied from class:ValuesSource.NumericGet the currentSortedNumericDocValues.- Specified by:
longValuesin classValuesSource.Numeric
-
doubleValues
Description copied from class:ValuesSource.NumericGet the currentSortedNumericDoubleValues.- Specified by:
doubleValuesin classValuesSource.Numeric
-
bytesValues
Description copied from class:ValuesSourceGet the currentValuesSource.Bytes.WithScript.BytesValues.- Specified by:
bytesValuesin classValuesSource
-