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 GeoPointBindercreate()latitude()projectable(Projectable projectable) Methods inherited from interface org.hibernate.search.mapper.pojo.bridge.mapping.programmatic.PropertyBinder
bindMethods inherited from interface org.hibernate.search.mapper.pojo.bridge.mapping.programmatic.TypeBinder
bind
-
Method Details
-
fieldName
- Parameters:
fieldName- The name of theGeoPointfield. 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 theGeoPointfield.- Returns:
this, for method chaining.- See Also:
-
sortable
- Parameters:
sortable- Whether theGeoPointfield 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
MarkerBinderfor the latitude, to be applied on a property. - See Also:
-
longitude
- Returns:
- A
MarkerBinderfor the longitude, to be applied on a property. - See Also:
-