/** * Matches the container specified by the constraint * whose geospatial point appears within one of the criteria regions. * @param constraintName the constraint definition * @param regions the possible regions containing the point * @return the StructuredQueryDefinition for the geospatial constraint query */ public GeospatialConstraintQuery geospatialConstraint(String constraintName, Region... regions) { checkRegions(regions); return new GeospatialConstraintQuery(constraintName, regions); }
/** * Matches an element, element pair, element attribute, pair, or path * specifying a geospatial point that appears within one of the criteria regions. * @param index the container for the coordinates of the geospatial point * @param regions the possible regions containing the point * @return the StructuredQueryDefinition for the geospatial query */ public StructuredQueryDefinition geospatial(GeospatialIndex index, Region... regions) { checkRegions(regions); return new GeospatialPointQuery(index, null, regions, null); } /**
/** * Matches an element, element pair, element attribute, pair, or path * specifying a geospatial point that appears within one of the criteria regions. * @param index the container for the coordinates of the geospatial point * @param regions the possible regions containing the point * @return the StructuredQueryDefinition for the geospatial query */ public StructuredQueryDefinition geospatial(GeospatialIndex index, Region... regions) { checkRegions(regions); return new GeospatialQuery(index, null, regions, null); } /**
/** * Matches the container specified by the constraint * whose geospatial region appears within one of the criteria regions. * @param constraintName the constraint definition * @param operator the geospatial operator to be applied with the regions * in the index and the criteria regions * @param regions the possible regions containing the point * @return the StructuredQueryDefinition for the geospatial constraint query */ public StructuredQueryDefinition geospatialRegionConstraint(String constraintName, GeospatialOperator operator, Region... regions) { checkRegions(regions); return new GeospatialRegionConstraintQuery(constraintName, operator, regions); }
/** * Matches the container specified by the constraint * whose geospatial point appears within one of the criteria regions. * @param constraintName the constraint definition * @param regions the possible regions containing the point * @return the StructuredQueryDefinition for the geospatial constraint query */ public GeospatialConstraintQuery geospatialConstraint(String constraintName, Region... regions) { checkRegions(regions); return new GeospatialConstraintQuery(constraintName, regions); }
/** * Matches an element, element pair, element attribute, pair, or path * specifying a geospatial point that appears within one of the criteria regions. * @param index the container for the coordinates of the geospatial point * @param scope whether the query matches the document content or properties * @param options options for fine tuning the query * @param regions the possible regions containing the point * @return the StructuredQueryDefinition for the geospatial query */ public StructuredQueryDefinition geospatial(GeospatialIndex index, FragmentScope scope, String[] options, Region... regions) { checkRegions(regions); return new GeospatialQuery(index, scope, regions, options); }
/** * Matches a path specifying a geospatial region, which is indexed via * geospatial region index, that has the relationship given by the operator * with at least one of the criteria regions. * @param index the container for the geospatial regions * @param operator the geospatial operator to be applied with the regions in the * index and the specified regions * @param regions the possible regions containing the region * @return the StructuredQueryDefinition for the geospatial query */ public StructuredQueryDefinition geospatial(GeospatialRegionIndex index, GeospatialOperator operator, Region... regions) { checkRegions(regions); return new GeospatialRegionQuery((GeoRegionPathImpl)index, operator, null, regions, null); }
/** * Matches an element, element pair, element attribute, pair, or path * specifying a geospatial point that appears within one of the criteria regions. * @param index the container for the coordinates of the geospatial point * @param scope whether the query matches the document content or properties * @param options options for fine tuning the query * @param regions the possible regions containing the point * @return the StructuredQueryDefinition for the geospatial query */ public StructuredQueryDefinition geospatial(GeospatialIndex index, FragmentScope scope, String[] options, Region... regions) { checkRegions(regions); return new GeospatialPointQuery(index, scope, regions, options); }
/** * Matches a path specifying a geospatial region, which is indexed via * geospatial region index, that has the relationship given by the operator * with at least one of the criteria regions. * @param index the container for the geospatial regions * @param operator the geospatial operator to be applied with the regions in the * index and the specified regions * @param scope whether the query matches the document content or properties * @param options options for fine tuning the query * @param regions the possible regions containing the region * @return the StructuredQueryDefinition for the geospatial query */ public StructuredQueryDefinition geospatial(GeospatialRegionIndex index, GeospatialOperator operator, FragmentScope scope, String[] options, Region... regions) { checkRegions(regions); return new GeospatialRegionQuery((GeoRegionPathImpl)index, operator, scope, regions, options); }