Class GeoPointBridge
- All Implemented Interfaces:
AutoCloseable,PropertyBridge<Object>,TypeBridge<Object>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close any resource before the bridge is discarded.voidwrite(DocumentElement target, Object bridgedElement, PropertyBridgeWriteContext context) Write to fields in the givenDocumentElement, using the givenbridgedElementas input and transforming it as necessary.voidwrite(DocumentElement target, Object bridgedElement, TypeBridgeWriteContext context) Write to fields in the givenDocumentElement, using the givenbridgedElementas input and transforming it as necessary.
-
Method Details
-
write
Description copied from interface:TypeBridgeWrite to fields in the givenDocumentElement, using the givenbridgedElementas input and transforming it as necessary.Writing to the
DocumentElementshould be done usingIndexFieldReferences retrieved when the bridge wasbound.Warning: Reading from
bridgedElementshould be done with care. Any read that was not declared duringbinding(by declaring dependencies usingTypeBindingContext.dependencies()or (advanced use) creating an accessor usingTypeBindingContext.bridgedElement()) may lead to out-of-sync indexes, because Hibernate Search will consider the read property irrelevant to indexing and will not reindex entities when that property changes.- Specified by:
writein interfaceTypeBridge<Object>- Parameters:
target- TheDocumentElementto write to.bridgedElement- The element this bridge is applied to, from which data should be read.context- A context that can beextendedto a more useful type, giving access to such things as a Hibernate ORM Session (if using the Hibernate ORM mapper).
-
write
public void write(DocumentElement target, Object bridgedElement, PropertyBridgeWriteContext context) Description copied from interface:PropertyBridgeWrite to fields in the givenDocumentElement, using the givenbridgedElementas input and transforming it as necessary.Writing to the
DocumentElementshould be done usingIndexFieldReferences retrieved when the bridge wasbound.Warning: Reading from
bridgedElementshould be done with care. Any read that was not declared duringbinding(by declaring dependencies usingPropertyBindingContext.dependencies()or (advanced use) creating an accessor usingPropertyBindingContext.bridgedElement()) may lead to out-of-sync indexes, because Hibernate Search will consider the read property irrelevant to indexing and will not reindex entities when that property changes.- Specified by:
writein interfacePropertyBridge<Object>- Parameters:
target- TheDocumentElementto write to.bridgedElement- The element this bridge is applied to, from which data should be read.context- A context that can beextendedto a more useful type, giving access to such things as a Hibernate ORM Session (if using the Hibernate ORM mapper).
-
close
public void close()Description copied from interface:TypeBridgeClose any resource before the bridge is discarded.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePropertyBridge<Object>- Specified by:
closein interfaceTypeBridge<Object>
-