public class JIPipeProjectCacheQuery extends Object
JIPipeProjectCache
. This query caches the node cache states, so they are not always recalculated (which is expensive!)Constructor and Description |
---|
JIPipeProjectCacheQuery(JIPipeProject project) |
Modifier and Type | Method and Description |
---|---|
Map<String,JIPipeDataSlot> |
getCachedData(JIPipeGraphNode node)
Returns the cache of the current algorithm state.
|
JIPipeProjectCacheState |
getCachedId(UUID nodeUUID)
Returns the current cache state of an algorithm node.
|
JIPipeGraphNode |
getNode(UUID id) |
BiMap<UUID,JIPipeGraphNode> |
getNodes() |
JIPipeProject |
getProject() |
void |
rebuild()
Rebuilds the stored states
|
void |
resetCacheIdEqualityCaches()
Clears the cached equality values of the cached states
|
public JIPipeProjectCacheQuery(JIPipeProject project)
public void rebuild()
public JIPipeGraphNode getNode(UUID id)
public JIPipeProject getProject()
public BiMap<UUID,JIPipeGraphNode> getNodes()
public Map<String,JIPipeDataSlot> getCachedData(JIPipeGraphNode node)
node
- the node. can be a different instance if the UUID is the same.public JIPipeProjectCacheState getCachedId(UUID nodeUUID)
nodeUUID
- the node UUIDpublic void resetCacheIdEqualityCaches()
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.