Spring Data Solr

org.springframework.data.solr.core.geo
Class BoundingBox

java.lang.Object
  extended by org.springframework.data.solr.core.geo.BoundingBox

public class BoundingBox
extends Object

Implementation of bounding box which is an area defined by two longitudes and two latitudes to be used in spatial queries

Author:
John Dorman, Christoph Strobl

Nested Class Summary
static class BoundingBox.Builder
           
 
Constructor Summary
BoundingBox(GeoLocation geoLocationStart, GeoLocation geoLocationEnd)
          Create new BoundingBox for given locations
 
Method Summary
 GeoLocation getGeoLocationEnd()
           
 GeoLocation getGeoLocationStart()
           
 void setGeoLocationEnd(GeoLocation geoLocationEnd)
           
 void setGeoLocationStart(GeoLocation geoLocationStart)
           
static BoundingBox.Builder startingAt(GeoLocation start)
          create bounding box via builder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoundingBox

public BoundingBox(GeoLocation geoLocationStart,
                   GeoLocation geoLocationEnd)
Create new BoundingBox for given locations

Parameters:
geoLocationStart - must not be null
geoLocationEnd - must not be null
Method Detail

startingAt

public static BoundingBox.Builder startingAt(GeoLocation start)
create bounding box via builder. BoundingBox.startingAt(locationStart).endingAt(locationEnd)

Parameters:
start -
Returns:

getGeoLocationStart

public GeoLocation getGeoLocationStart()

setGeoLocationStart

public void setGeoLocationStart(GeoLocation geoLocationStart)

getGeoLocationEnd

public GeoLocation getGeoLocationEnd()

setGeoLocationEnd

public void setGeoLocationEnd(GeoLocation geoLocationEnd)

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.