public class HierarchyNavigator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected IQuery |
iQuery
available query service
|
Modifier | Constructor and Description |
---|---|
protected |
HierarchyNavigator(IQuery iQuery)
Construct a new hierarchy navigator.
|
Modifier and Type | Method and Description |
---|---|
protected com.google.common.collect.ImmutableSet<java.lang.Long> |
doLookup(java.lang.String toType,
java.lang.String fromType,
java.lang.Long fromId)
Look up which objects of a given type relate to the given query object.
|
protected void |
prepareLookups(java.lang.String toType,
java.lang.String fromType,
java.util.Collection<java.lang.Long> fromIds)
Batch bulk database queries to prime the cache for
doLookup(String, String, Long) . |
protected final IQuery iQuery
protected HierarchyNavigator(IQuery iQuery)
iQuery
- the query serviceprotected void prepareLookups(java.lang.String toType, java.lang.String fromType, java.util.Collection<java.lang.Long> fromIds)
doLookup(String, String, Long)
.
It is not necessary to call this method, but it is advised if many lookups are anticipated.toType
- the type of the objects to which the query objects may be related, not null
fromType
- the query object's type, not null
fromIds
- the query objects' database IDs, none null
protected com.google.common.collect.ImmutableSet<java.lang.Long> doLookup(java.lang.String toType, java.lang.String fromType, java.lang.Long fromId)
prepareLookups(String, String, Collection)
.toType
- the type of the objects to which the query object may be related, not null
fromType
- the query object's type, not null
fromId
- the query object's database ID, not null
null
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.