public String fieldName() { return indexFieldData.getFieldNames().indexName(); }
@Override protected String getFieldName() { return fieldData.getFieldNames().fullName(); } }
@Override public String toString(String field) { StringBuilder sb = new StringBuilder("GeoPolygonQuery("); sb.append(indexFieldData.getFieldNames().indexName()); sb.append(", ").append(Arrays.toString(points)).append(')'); return sb.toString(); }
@Override public String toString(String field) { return "GeoDistanceRangeQuery(" + indexFieldData.getFieldNames().indexName() + ", " + geoDistance + ", [" + inclusiveLowerPoint + " - " + inclusiveUpperPoint + "], " + lat + ", " + lon + ")"; }
@Override public String toString(String field) { return "GeoBoundingBoxFilter(" + indexFieldData.getFieldNames().indexName() + ", " + topLeft + ", " + bottomRight + ")"; }
public String fieldName() { return indexFieldData.getFieldNames().indexName(); }
public String fieldName() { return indexFieldData.getFieldNames().indexName(); }
@Override public boolean equals(Object o) { if (this == o) return true; if (super.equals(o) == false) return false; GeoDistanceRangeQuery filter = (GeoDistanceRangeQuery) o; if (Double.compare(filter.inclusiveLowerPoint, inclusiveLowerPoint) != 0) return false; if (Double.compare(filter.inclusiveUpperPoint, inclusiveUpperPoint) != 0) return false; if (Double.compare(filter.lat, lat) != 0) return false; if (Double.compare(filter.lon, lon) != 0) return false; if (!indexFieldData.getFieldNames().indexName().equals(filter.indexFieldData.getFieldNames().indexName())) return false; if (geoDistance != filter.geoDistance) return false; return true; }
@Override public boolean equals(Object obj) { if (super.equals(obj) == false) { return false; } GeoPolygonQuery that = (GeoPolygonQuery) obj; return indexFieldData.getFieldNames().indexName().equals(that.indexFieldData.getFieldNames().indexName()) && Arrays.equals(points, that.points); }
@Override public int hashCode() { int h = super.hashCode(); h = 31 * h + indexFieldData.getFieldNames().indexName().hashCode(); h = 31 * h + Arrays.hashCode(points); return h; } }
@Override public int hashCode() { int result = super.hashCode(); long temp; temp = lat != +0.0d ? Double.doubleToLongBits(lat) : 0L; result = 31 * result + (int) (temp ^ (temp >>> 32)); temp = lon != +0.0d ? Double.doubleToLongBits(lon) : 0L; result = 31 * result + (int) (temp ^ (temp >>> 32)); temp = inclusiveLowerPoint != +0.0d ? Double.doubleToLongBits(inclusiveLowerPoint) : 0L; result = 31 * result + (int) (temp ^ (temp >>> 32)); temp = inclusiveUpperPoint != +0.0d ? Double.doubleToLongBits(inclusiveUpperPoint) : 0L; result = 31 * result + (int) (temp ^ (temp >>> 32)); result = 31 * result + (geoDistance != null ? geoDistance.hashCode() : 0); result = 31 * result + indexFieldData.getFieldNames().indexName().hashCode(); return result; }
query = new GeoPointInPolygonQuery(indexFieldData.getFieldNames().indexName(), encoding, lons, lats);
GeoPointField.TermEncoding.NUMERIC : GeoPointField.TermEncoding.PREFIX; query = new GeoPointDistanceRangeQuery(indexFieldData.getFieldNames().indexName(), encoding, point.lon(), point.lat(), (includeLower) ? from : from + TOLERANCE, (includeUpper) ? to : to - TOLERANCE);
GeoPointField.TermEncoding.NUMERIC : GeoPointField.TermEncoding.PREFIX; distance = GeoUtils.maxRadialDistance(point, distance); query = new GeoPointDistanceQuery(indexFieldData.getFieldNames().indexName(), encoding, point.lon(), point.lat(), distance);