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 convertMultiGeoPointValues
to numeric long values for bucketing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CellIdSource.GeoPointLongEncoder
The 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
Modifier and Type Method Description SortedBinaryDocValues
bytesValues(org.apache.lucene.index.LeafReaderContext ctx)
Get the currentValuesSource.WithScript.BytesValues
.SortedNumericDoubleValues
doubleValues(org.apache.lucene.index.LeafReaderContext ctx)
Get the currentSortedNumericDoubleValues
.boolean
isFloatingPoint()
Whether the underlying data is floating-point or not.org.apache.lucene.index.SortedNumericDocValues
longValues(org.apache.lucene.index.LeafReaderContext ctx)
Get the currentSortedNumericDocValues
.int
precision()
-
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.Numeric
Whether the underlying data is floating-point or not.- Specified by:
isFloatingPoint
in classValuesSource.Numeric
-
longValues
public org.apache.lucene.index.SortedNumericDocValues longValues(org.apache.lucene.index.LeafReaderContext ctx)
Description copied from class:ValuesSource.Numeric
Get the currentSortedNumericDocValues
.- Specified by:
longValues
in classValuesSource.Numeric
-
doubleValues
public SortedNumericDoubleValues doubleValues(org.apache.lucene.index.LeafReaderContext ctx)
Description copied from class:ValuesSource.Numeric
Get the currentSortedNumericDoubleValues
.- Specified by:
doubleValues
in classValuesSource.Numeric
-
bytesValues
public SortedBinaryDocValues bytesValues(org.apache.lucene.index.LeafReaderContext ctx)
Description copied from class:ValuesSource
Get the currentValuesSource.WithScript.BytesValues
.- Specified by:
bytesValues
in classValuesSource
-
-