Class ValuesSource.GeoPoint
org.elasticsearch.search.aggregations.support.ValuesSource
org.elasticsearch.search.aggregations.support.ValuesSource.GeoPoint
- Direct Known Subclasses:
ValuesSource.GeoPoint.Fielddata
- Enclosing class:
- ValuesSource
ValuesSource for fields who's values are best thought of
as points on a globe.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.Numeric, ValuesSource.Range
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondocsWithValue(org.apache.lucene.index.LeafReaderContext context)
Get a "has any values" view into the values.abstract MultiGeoPointValues
geoPointValues(org.apache.lucene.index.LeafReaderContext context)
Build a function to prepareRounding
s.Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
bytesValues, hasOrdinals, needsScores
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Field Details
-
EMPTY
-
-
Constructor Details
-
GeoPoint
public GeoPoint()
-
-
Method Details
-
docsWithValue
Description copied from class:ValuesSource
Get a "has any values" view into the values. It'll try to pick the "most native" way to check if there are any values, but it builds its own view into the values so if you need any of the actual values its best to use something likeValuesSource.bytesValues(org.apache.lucene.index.LeafReaderContext)
orValuesSource.Numeric.doubleValues(org.apache.lucene.index.LeafReaderContext)
but if you just need to know if there are any values then use this.- Specified by:
docsWithValue
in classValuesSource
- Throws:
-
roundingPreparer
Description copied from class:ValuesSource
Build a function to prepareRounding
s.This returns a because auto date histogram will need to call it many times over the course of running the aggregation. Other aggregations should feel free to call it once.
- Specified by:
roundingPreparer
in classValuesSource
- Throws:
-
geoPointValues
public abstract MultiGeoPointValues geoPointValues(org.apache.lucene.index.LeafReaderContext context)
-