|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.services.fulltext.BridgeHelper
ome.services.fulltext.bridges.TablesBridge
public class TablesBridge
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 the Image
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.
Field Summary | |
---|---|
String |
OMERO_TABLE
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 | |
---|---|
TablesBridge()
|
Method Summary | |
---|---|
protected void |
handleAnnotated(ome.model.IAnnotated annotated,
Document document,
org.hibernate.search.bridge.LuceneOptions opts)
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)
Detects if the given annotation contains an OMERO.table and if so, passes it off for further processing. |
protected void |
handleHdf5(String path,
ome.services.fulltext.bridges.TablesBridge.RowProcessor proc)
Process a single OMERO.tables file. |
protected void |
handleImage(ome.model.core.Image image,
Document document,
org.hibernate.search.bridge.LuceneOptions opts)
Processes any annotations attached to the following types which contain this image: Plate, Dataset |
void |
set(String name,
Object value,
Document document,
org.hibernate.search.bridge.LuceneOptions opts)
Primary entry point for all bridges. |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
|
Methods inherited from class ome.services.fulltext.BridgeHelper |
---|
add, addContents, getProxiedObject, logger, parse, reindex, reindexAll |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final String OMERO_TABLE
Constructor Detail |
---|
public TablesBridge()
Method Detail |
---|
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
setApplicationEventPublisher
in class BridgeHelper
public void set(String name, Object value, Document document, org.hibernate.search.bridge.LuceneOptions opts)
set
in interface org.hibernate.search.bridge.FieldBridge
set
in class BridgeHelper
protected void handleImage(ome.model.core.Image image, Document document, org.hibernate.search.bridge.LuceneOptions opts)
protected void handleAnnotated(ome.model.IAnnotated annotated, Document document, org.hibernate.search.bridge.LuceneOptions opts)
handleImage(Image, Document, LuceneOptions)
.
protected void handleAnnotation(ome.model.annotations.Annotation annotation, ome.services.fulltext.bridges.TablesBridge.RowProcessor proc)
protected void handleHdf5(String path, ome.services.fulltext.bridges.TablesBridge.RowProcessor proc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.