org.elasticsearch.search.facet.geodistance
Class GeoDistanceFacetCollector.Aggregator

java.lang.Object
  extended by org.elasticsearch.search.facet.geodistance.GeoDistanceFacetCollector.Aggregator
All Implemented Interfaces:
GeoPointFieldData.ValueInDocProc
Enclosing class:
GeoDistanceFacetCollector

public static class GeoDistanceFacetCollector.Aggregator
extends java.lang.Object
implements GeoPointFieldData.ValueInDocProc


Field Summary
protected  double lat
           
protected  double lon
           
 
Constructor Summary
GeoDistanceFacetCollector.Aggregator(double lat, double lon, GeoDistance geoDistance, DistanceUnit unit, GeoDistanceFacet.Entry[] entries)
           
 
Method Summary
 void onValue(int docId, double lat, double lon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lat

protected final double lat

lon

protected final double lon
Constructor Detail

GeoDistanceFacetCollector.Aggregator

public GeoDistanceFacetCollector.Aggregator(double lat,
                                            double lon,
                                            GeoDistance geoDistance,
                                            DistanceUnit unit,
                                            GeoDistanceFacet.Entry[] entries)
Method Detail

onValue

public void onValue(int docId,
                    double lat,
                    double lon)
Specified by:
onValue in interface GeoPointFieldData.ValueInDocProc