| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.spatial.tier.DistanceQueryBuilder
public class DistanceQueryBuilder
NOTE: This API is still in flux and might change in incompatible ways in the next release.
| Constructor Summary | |
|---|---|
| DistanceQueryBuilder(double lat,
                     double lng,
                     double miles,
                     String geoHashFieldPrefix,
                     String tierFieldPrefix,
                     boolean needPrecise,
                     int minTierIndexed,
                     int maxTierIndexed)Create a distance query using a boundary box wrapper around a more precise DistanceFilter. | |
| DistanceQueryBuilder(double lat,
                     double lng,
                     double miles,
                     String latField,
                     String lngField,
                     String tierFieldPrefix,
                     boolean needPrecise,
                     int minTierIndexed,
                     int maxTierIndexed)Create a distance query using a boundary box wrapper around a more precise DistanceFilter. | |
| Method Summary | |
|---|---|
|  DistanceFilter | getDistanceFilter() | 
|  Filter | getFilter()Create a distance query using a boundary box wrapper around a more precise DistanceFilter. | 
|  Filter | getFilter(Query query) | 
|  double | getLat() | 
|  double | getLng() | 
|  double | getMiles() | 
|  Query | getQuery(Query query) | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public DistanceQueryBuilder(double lat,
                            double lng,
                            double miles,
                            String latField,
                            String lngField,
                            String tierFieldPrefix,
                            boolean needPrecise,
                            int minTierIndexed,
                            int maxTierIndexed)
lat - The latitude to search aroundlng - the Longitude to search aroundmiles - The radius to search withinlatField - The name of the field containing the latitudelngField - The name of the field containing the longitudetierFieldPrefix - The prefix of the tierneedPrecise - if true, then distance is calculated in addition to tier infominTierIndexed - The minimum tier level indexedmaxTierIndexed - The maximum tier level indexed
public DistanceQueryBuilder(double lat,
                            double lng,
                            double miles,
                            String geoHashFieldPrefix,
                            String tierFieldPrefix,
                            boolean needPrecise,
                            int minTierIndexed,
                            int maxTierIndexed)
lat - lng - miles - | Method Detail | 
|---|
public Filter getFilter()
public Filter getFilter(Query query)
public DistanceFilter getDistanceFilter()
public Query getQuery(Query query)
public double getLat()
public double getLng()
public double getMiles()
public String toString()
toString in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||