Package ome.services.fulltext.bridges
Class TablesBridge
- java.lang.Object
-
- ome.services.fulltext.BridgeHelper
-
- ome.services.fulltext.bridges.TablesBridge
-
- All Implemented Interfaces:
org.hibernate.search.bridge.FieldBridge
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationEventPublisherAware
@Deprecated public class TablesBridge extends BridgeHelper
Deprecated.Bridge for parsing OMERO.tables attached to container types. The column names are taken as field names on each image (or similar) found within the table. For example, if a table is attached to a plate and has an omero.grid.ImageColumn "IMAGE" along with one omero.grid.DoubleColumn named "SIZE", then a row with IMAGE == 1 and SIZE == 0.02 will add a field "SIZE" to theImage
with id 1 so that a Lucene search "SIZE:0.02" will return that object. This is accomplished by detecting such OMERO.tables on the container and registering each row (above: IMAGE == 1, IMAGE == 2, etc) for later processing. When the element objects are handled, the container is found and the appropriate row processed. This two stage processingis necessary so that later indexing does not overwrite the table values.- Since:
- 4.3
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
OMERO_TABLE
Deprecated.Mimetype set on OriginalFile.mimetype (or in previous version, OriginalFile.format.value).-
Fields inherited from class ome.services.fulltext.BridgeHelper
COMBINED, log, publisher
-
-
Constructor Summary
Constructors Constructor Description TablesBridge()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
handleAnnotated(ome.model.IAnnotated annotated, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Responsible for iterating over any attached OMERO.tables and registering all appropriate row objects for later processing.protected void
handleAnnotation(ome.model.annotations.Annotation annotation, ome.services.fulltext.bridges.TablesBridge.RowProcessor proc)
Deprecated.Detects if the given annotation contains an OMERO.table and if so, passes it off for further processing.protected void
handleHdf5(java.lang.String path, ome.services.fulltext.bridges.TablesBridge.RowProcessor proc)
Deprecated.Process a single OMERO.tables file.protected void
handleImage(ome.model.core.Image image, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Processes any annotations attached to the following types which contain this image: Plate, Datasetvoid
set(java.lang.String name, java.lang.Object value, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Primary entry point for all bridges.void
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
Deprecated.-
Methods inherited from class ome.services.fulltext.BridgeHelper
add, addContents, addEnumIfNotNull, addIfNotNull, getProxiedObject, logger, parse, reindex, reindexAll
-
-
-
-
Field Detail
-
OMERO_TABLE
public final java.lang.String OMERO_TABLE
Deprecated.Mimetype set on OriginalFile.mimetype (or in previous version, OriginalFile.format.value).- See Also:
- Constant Field Values
-
-
Method Detail
-
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
Deprecated.- Specified by:
setApplicationEventPublisher
in interfaceorg.springframework.context.ApplicationEventPublisherAware
- Overrides:
setApplicationEventPublisher
in classBridgeHelper
-
set
public void set(java.lang.String name, java.lang.Object value, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Primary entry point for all bridges.- Specified by:
set
in interfaceorg.hibernate.search.bridge.FieldBridge
- Specified by:
set
in classBridgeHelper
-
handleImage
protected void handleImage(ome.model.core.Image image, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Processes any annotations attached to the following types which contain this image: Plate, Dataset
-
handleAnnotated
protected void handleAnnotated(ome.model.IAnnotated annotated, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
Deprecated.Responsible for iterating over any attached OMERO.tables and registering all appropriate row objects for later processing. For example, if the table has an omero.grid.ImageColumn with ids 1, 2, 3, and 4, then 4 image objects will be registered for later processing byhandleImage(Image, Document, LuceneOptions)
.
-
handleAnnotation
protected void handleAnnotation(ome.model.annotations.Annotation annotation, ome.services.fulltext.bridges.TablesBridge.RowProcessor proc)
Deprecated.Detects if the given annotation contains an OMERO.table and if so, passes it off for further processing.
-
handleHdf5
protected void handleHdf5(java.lang.String path, ome.services.fulltext.bridges.TablesBridge.RowProcessor proc)
Deprecated.Process a single OMERO.tables file. This method is primarily responsible for iteration and the try/finally logic to guarantee cleanup, etc.
-
-