@@ -385,43 +385,43 @@ public Criteria within(String geoLocation, String distance) {
385
385
}
386
386
387
387
/**
388
- * Creates new CriteriaEntry for {@code location BBOX bounding box}
388
+ * Creates new CriteriaEntry for {@code location GeoBox bounding box}
389
389
*
390
- * @param bbox {@link org.springframework.data.elasticsearch.core.geo.GeoBox} bounding box(left top corner + right bottom corner)
391
- * @return Criteria the chaind criteria with the new 'bbox ' criteria included.
390
+ * @param boundingBox {@link org.springframework.data.elasticsearch.core.geo.GeoBox} bounding box(left top corner + right bottom corner)
391
+ * @return Criteria the chaind criteria with the new 'boundingBox ' criteria included.
392
392
*/
393
- public Criteria bbox (GeoBox bbox ) {
394
- Assert .notNull (bbox , "bbox value for bbox criteria must not be null" );
395
- filterCriteria .add (new CriteriaEntry (OperationKey .BBOX , new Object []{bbox }));
393
+ public Criteria boundedBy (GeoBox boundingBox ) {
394
+ Assert .notNull (boundingBox , "boundingBox value for boundedBy criteria must not be null" );
395
+ filterCriteria .add (new CriteriaEntry (OperationKey .BBOX , new Object []{boundingBox }));
396
396
return this ;
397
397
}
398
398
399
399
400
400
/**
401
401
* Creates new CriteriaEntry for bounding box created from points
402
402
*
403
- * @param topLeft left top corner of bounding box
404
- * @param bottomRight right bottom corner of bounding box
405
- * @return Criteria the chaind criteria with the new 'bbox ' criteria included.
403
+ * @param topLeftPoint left top corner of bounding box
404
+ * @param bottomRightPoint right bottom corner of bounding box
405
+ * @return Criteria the chaind criteria with the new 'boundedBy ' criteria included.
406
406
*/
407
- public Criteria bbox (String topLeft , String bottomRight ) {
408
- Assert .isTrue (StringUtils .isNotBlank (topLeft ), "topLeft point must not be empty" );
409
- Assert .isTrue (StringUtils .isNotBlank (bottomRight ), "bottomRight point must not be empty" );
410
- filterCriteria .add (new CriteriaEntry (OperationKey .BBOX , new Object []{topLeft , bottomRight }));
407
+ public Criteria boundedBy (String topLeftPoint , String bottomRightPoint ) {
408
+ Assert .isTrue (StringUtils .isNotBlank (topLeftPoint ), "topLeftPoint must not be empty" );
409
+ Assert .isTrue (StringUtils .isNotBlank (bottomRightPoint ), "bottomRightPoint must not be empty" );
410
+ filterCriteria .add (new CriteriaEntry (OperationKey .BBOX , new Object []{topLeftPoint , bottomRightPoint }));
411
411
return this ;
412
412
}
413
413
414
414
/**
415
415
* Creates new CriteriaEntry for bounding box created from points
416
416
*
417
- * @param topLeft left top corner of bounding box
418
- * @param bottomRight right bottom corner of bounding box
419
- * @return Criteria the chaind criteria with the new 'bbox ' criteria included.
417
+ * @param topLeftPoint left top corner of bounding box
418
+ * @param bottomRightPoint right bottom corner of bounding box
419
+ * @return Criteria the chaind criteria with the new 'boundedBy ' criteria included.
420
420
*/
421
- public Criteria bbox (GeoPoint topLeft , GeoPoint bottomRight ) {
422
- Assert .notNull (topLeft , "topLeft point must not be null" );
423
- Assert .notNull (bottomRight , "bottomRight point must not be null" );
424
- filterCriteria .add (new CriteriaEntry (OperationKey .BBOX , new Object []{topLeft , bottomRight }));
421
+ public Criteria boundedBy (GeoPoint topLeftPoint , GeoPoint bottomRightPoint ) {
422
+ Assert .notNull (topLeftPoint , "topLeftPoint must not be null" );
423
+ Assert .notNull (bottomRightPoint , "bottomRightPoint must not be null" );
424
+ filterCriteria .add (new CriteriaEntry (OperationKey .BBOX , new Object []{topLeftPoint , bottomRightPoint }));
425
425
return this ;
426
426
}
427
427
0 commit comments