Class GeoPointBridge.Binder
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.bridge.builtin.spatial.impl.GeoPointBridge.Binder
-
- All Implemented Interfaces:
GeoPointBinder,PropertyBinder,TypeBinder
- Enclosing class:
- GeoPointBridge
public static class GeoPointBridge.Binder extends Object implements GeoPointBinder
-
-
Constructor Summary
Constructors Constructor Description Binder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(PropertyBindingContext context)Binds a property to index fields.voidbind(TypeBindingContext context)Binds a type to index fields.GeoPointBridge.BinderfieldName(String fieldName)GeoPointBridge.BindermarkerSet(String markerSet)GeoPointBridge.Binderprojectable(Projectable projectable)GeoPointBridge.Bindersortable(Sortable sortable)
-
-
-
Method Detail
-
fieldName
public GeoPointBridge.Binder fieldName(String fieldName)
- Specified by:
fieldNamein interfaceGeoPointBinder- 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
public GeoPointBridge.Binder projectable(Projectable projectable)
- Specified by:
projectablein interfaceGeoPointBinder- Parameters:
projectable- Whether projections are enabled for theGeoPointfield.- Returns:
this, for method chaining.- See Also:
GenericField.projectable(),Projectable
-
sortable
public GeoPointBridge.Binder sortable(Sortable sortable)
- Specified by:
sortablein interfaceGeoPointBinder- Parameters:
sortable- Whether theGeoPointfield should be sortable by distance.- Returns:
this, for method chaining.- See Also:
GenericField.sortable(),Sortable
-
markerSet
public GeoPointBridge.Binder markerSet(String markerSet)
- Specified by:
markerSetin interfaceGeoPointBinder- 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.
-
bind
public void bind(TypeBindingContext context)
Description copied from interface:TypeBinderBinds a type to index fields.The context passed in parameter provides various information about the type being bound. Implementations are expected to take advantage of that information and to call one of the
bridge(...)methods on the context to set the bridge.Implementations are also expected to declare dependencies, i.e. the properties that will later be used in the
TypeBridge.write(DocumentElement, Object, TypeBridgeWriteContext)method, usingTypeBindingContext.dependencies(). Failing that, Hibernate Search will not reindex entities properly when an indexed property is modified.- Specified by:
bindin interfaceTypeBinder- Parameters:
context- A context object providing information about the type being bound, and expecting a call to one of itsbridge(...)methods.
-
bind
public void bind(PropertyBindingContext context)
Description copied from interface:PropertyBinderBinds a property to index fields.The context passed in parameter provides various information about the property being bound. Implementations are expected to take advantage of that information and to call one of the
bridge(...)methods on the context to set the bridge.Implementations are also expected to declare dependencies, i.e. the properties that will later be used in the
PropertyBridge.write(DocumentElement, Object, PropertyBridgeWriteContext)method, usingPropertyBindingContext.dependencies(). Failing that, Hibernate Search will not reindex entities properly when an indexed property is modified.- Specified by:
bindin interfacePropertyBinder- Parameters:
context- A context object providing information about the property being bound, and expecting a call to one of itsbridge(...)methods.
-
-