public class HierarchyNavigator extends 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<Long> |
doLookup(String toType,
String fromType,
Long fromId)
Look up which objects of a given type relate to the given query object.
|
protected void |
prepareLookups(String toType,
String fromType,
Collection<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(String toType, String fromType, Collection<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<Long> doLookup(String toType, String fromType, 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.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.