Class ValuesSource

java.lang.Object
org.elasticsearch.search.aggregations.support.ValuesSource
Direct Known Subclasses:
ValuesSource.Bytes, ValuesSource.GeoPoint, ValuesSource.Numeric, ValuesSource.Range

public abstract class ValuesSource extends Object
A unified interface to different ways of getting input data for Aggregators like DocValues from Lucene or script output. The top level sub-classes define type-specific behavior, such as ValuesSource.Numeric.isFloatingPoint(). Second level subclasses are then specialized based on where they read values from, e.g. script or field cases. There are also adapter classes like GeoTileCellIdSource which do run-time conversion from one type to another, often dependent on a user specified parameter (precision in that case).