Module org.elasticsearch.server
Class GeoHashCellIdSource
java.lang.Object
org.elasticsearch.search.aggregations.support.ValuesSource
org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
org.elasticsearch.search.aggregations.bucket.geogrid.CellIdSource
org.elasticsearch.search.aggregations.bucket.geogrid.GeoHashCellIdSource
CellIdSource
implementation for Geohash aggregation-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.bucket.geogrid.CellIdSource
CellIdSource.CellMultiValues, CellIdSource.CellSingleValue
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
ConstructorDescriptionGeoHashCellIdSource
(ValuesSource.GeoPoint valuesSource, int precision, GeoBoundingBox geoBoundingBox) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.index.SortedNumericDocValues
boundedCellMultiValues
(MultiGeoPointValues values, GeoBoundingBox boundingBox) Generate a bounded iterator of grid-cells for multi-value case.protected org.apache.lucene.index.NumericDocValues
boundedCellSingleValue
(GeoPointValues values, GeoBoundingBox boundingBox) Generate a bounded iterator of grid-cells for singleton case.protected org.apache.lucene.index.SortedNumericDocValues
Generate an unbounded iterator of grid-cells for multi-value case.protected org.apache.lucene.index.NumericDocValues
Generate an unbounded iterator of grid-cells for singleton case.Methods inherited from class org.elasticsearch.search.aggregations.bucket.geogrid.CellIdSource
bytesValues, doubleValues, isFloatingPoint, longValues, precision, validPoint
Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource.Numeric
docsWithValue, roundingPreparer
Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
hasOrdinals, needsScores
-
Constructor Details
-
GeoHashCellIdSource
public GeoHashCellIdSource(ValuesSource.GeoPoint valuesSource, int precision, GeoBoundingBox geoBoundingBox)
-
-
Method Details
-
unboundedCellSingleValue
Description copied from class:CellIdSource
Generate an unbounded iterator of grid-cells for singleton case.- Specified by:
unboundedCellSingleValue
in classCellIdSource
-
boundedCellSingleValue
protected org.apache.lucene.index.NumericDocValues boundedCellSingleValue(GeoPointValues values, GeoBoundingBox boundingBox) Description copied from class:CellIdSource
Generate a bounded iterator of grid-cells for singleton case.- Specified by:
boundedCellSingleValue
in classCellIdSource
-
unboundedCellMultiValues
protected org.apache.lucene.index.SortedNumericDocValues unboundedCellMultiValues(MultiGeoPointValues values) Description copied from class:CellIdSource
Generate an unbounded iterator of grid-cells for multi-value case.- Specified by:
unboundedCellMultiValues
in classCellIdSource
-
boundedCellMultiValues
protected org.apache.lucene.index.SortedNumericDocValues boundedCellMultiValues(MultiGeoPointValues values, GeoBoundingBox boundingBox) Description copied from class:CellIdSource
Generate a bounded iterator of grid-cells for multi-value case.- Specified by:
boundedCellMultiValues
in classCellIdSource
-