Class GeoPointBridge.Binder
- All Implemented Interfaces:
GeoPointBinder,PropertyBinder,TypeBinder
- Enclosing class:
- GeoPointBridge
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(PropertyBindingContext context) Binds a property to index fields.voidbind(TypeBindingContext context) Binds a type to index fields.projectable(Projectable projectable)
-
Constructor Details
-
Binder
public Binder()
-
-
Method Details
-
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
- Specified by:
projectablein interfaceGeoPointBinder- Parameters:
projectable- Whether projections are enabled for theGeoPointfield.- Returns:
this, for method chaining.- See Also:
-
sortable
- Specified by:
sortablein interfaceGeoPointBinder- Parameters:
sortable- Whether theGeoPointfield should be sortable by distance.- Returns:
this, for method chaining.- See Also:
-
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
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
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.
-