Interface GeoPointBinder
- All Superinterfaces:
PropertyBinder
,TypeBinder
A binder from a type or property to a
GeoPoint
field, representing a point on earth.
These fields allow spatial predicates such as "within" (is the point within a circle, a bounding box, ...), sorts by distance to another point, ...
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic GeoPointBinder
create()
latitude()
projectable
(Projectable projectable) Methods inherited from interface org.hibernate.search.mapper.pojo.bridge.mapping.programmatic.PropertyBinder
bind
Methods inherited from interface org.hibernate.search.mapper.pojo.bridge.mapping.programmatic.TypeBinder
bind
-
Method Details
-
fieldName
- Parameters:
fieldName
- The name of theGeoPoint
field. If used on a property, this defaults to the name of that property. Otherwise, the name must be defined explicitly.- Returns:
this
, for method chaining.
-
projectable
- Parameters:
projectable
- Whether projections are enabled for theGeoPoint
field.- Returns:
this
, for method chaining.- See Also:
-
sortable
- Parameters:
sortable
- Whether theGeoPoint
field should be sortable by distance.- Returns:
this
, for method chaining.- See Also:
-
markerSet
- Parameters:
markerSet
- The name of the "marker set". This is used to discriminate between multiple pairs of latitude/longitude markers:assign a marker set when building each marker
, then select the marker set here.- Returns:
this
, for method chaining.
-
create
- Returns:
- A
GeoPointBinder
.
-
latitude
- Returns:
- A
MarkerBinder
for the latitude, to be applied on a property. - See Also:
-
longitude
- Returns:
- A
MarkerBinder
for the longitude, to be applied on a property. - See Also:
-