Module org.elasticsearch.server
Class ValuesSource.GeoPoint
java.lang.Object
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 ClassesNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.Numeric, ValuesSource.Range -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondocsWithValue(org.apache.lucene.index.LeafReaderContext context) Get a "has any values" view into the values.final MultiGeoPointValuesgeoPointValues(org.apache.lucene.index.LeafReaderContext context) Return geo-point values.abstract org.apache.lucene.index.SortedNumericDocValuesgeoSortedNumericDocValues(org.apache.lucene.index.LeafReaderContext context) Return the internal representation of geo_point doc values as aSortedNumericDocValues.final Function<Rounding, Rounding.Prepared> roundingPreparer(AggregationContext context) Build a function to prepareRoundings.Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSource
bytesValues, hasOrdinals, needsScores
-
Field Details
-
EMPTY
-
-
Constructor Details
-
GeoPoint
public GeoPoint()
-
-
Method Details
-
docsWithValue
public DocValueBits docsWithValue(org.apache.lucene.index.LeafReaderContext context) throws IOException Description copied from class:ValuesSourceGet 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:
docsWithValuein classValuesSource- Throws:
IOException
-
roundingPreparer
public final Function<Rounding,Rounding.Prepared> roundingPreparer(AggregationContext context) throws IOException Description copied from class:ValuesSourceBuild a function to prepareRoundings.This returns a Function 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:
roundingPreparerin classValuesSource- Throws:
IOException
-
geoPointValues
Return geo-point values. -
geoSortedNumericDocValues
public abstract org.apache.lucene.index.SortedNumericDocValues geoSortedNumericDocValues(org.apache.lucene.index.LeafReaderContext context) Return the internal representation of geo_point doc values as aSortedNumericDocValues. A point is encoded as a long that can be decoded by usingGeoPoint.resetFromEncoded(long)
-