public class TablesBridge extends BridgeHelper
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.Modifier and Type | Field and Description |
---|---|
String |
OMERO_TABLE
Mimetype set on OriginalFile.mimetype (or in previous version,
OriginalFile.format.value).
|
COMBINED, log, publisher
Constructor and Description |
---|
TablesBridge() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleAnnotated(IAnnotated annotated,
org.apache.lucene.document.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(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(Image image,
org.apache.lucene.document.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,
org.apache.lucene.document.Document document,
org.hibernate.search.bridge.LuceneOptions opts)
Primary entry point for all bridges.
|
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
Set the ApplicationEventPublisher that this object runs in.
|
add, addContents, getProxiedObject, logger, parse, reindex, reindexAll
public final String OMERO_TABLE
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
org.springframework.context.ApplicationEventPublisherAware
Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method. Invoked before ApplicationContextAware's setApplicationContext.
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
setApplicationEventPublisher
in class BridgeHelper
publisher
- event publisher to be used by this objectpublic void set(String name, Object value, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
set
in interface org.hibernate.search.bridge.FieldBridge
set
in class BridgeHelper
protected void handleImage(Image image, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
protected void handleAnnotated(IAnnotated annotated, org.apache.lucene.document.Document document, org.hibernate.search.bridge.LuceneOptions opts)
handleImage(Image, Document, LuceneOptions)
.protected void handleAnnotation(Annotation annotation, ome.services.fulltext.bridges.TablesBridge.RowProcessor proc)
protected void handleHdf5(String path, ome.services.fulltext.bridges.TablesBridge.RowProcessor proc)
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.