public class RuleAnalysisGraphImpl extends Object implements RuleAnalysisGraph
RuleAnalysisGraph driven by a GraphTransformationEngine
TODO(bobyf): once we add stages to GraphTransformationEngine this implementation and
the interface will probably change/go away
| Modifier and Type | Method and Description |
|---|---|
RuleAnalysisResult |
get(RuleAnalysisKey lookupKey)
Finds the
RuleAnalysisResult of the given RuleAnalysisKey, starting computation
as necessary. |
com.google.common.collect.ImmutableMap<RuleAnalysisKey,RuleAnalysisResult> |
getAll(Set<RuleAnalysisKey> lookupKeys)
same as
RuleAnalysisGraph.get(RuleAnalysisKey) but for multiple RuleAnalysisKeys |
static RuleAnalysisGraphImpl |
of(GraphComputation<RuleAnalysisKey,RuleAnalysisResult> computation,
TargetGraph targetGraph,
DepsAwareExecutor<? super ComputeResult,?> depsAwareExecutor,
RuleAnalysisCache cache)
creates a new computation with the supplied
DepsAwareExecutor and using the given
GraphEngineCache, and computation. |
static RuleAnalysisGraphImpl |
of(TargetGraph targetGraph,
DepsAwareExecutor<? super ComputeResult,?> depsAwareExecutor,
RuleAnalysisCache cache,
BuckEventBus eventBus)
creates a new computation with the supplied
DepsAwareExecutor and using the given
GraphEngineCache. |
public static RuleAnalysisGraphImpl of(TargetGraph targetGraph, DepsAwareExecutor<? super ComputeResult,?> depsAwareExecutor, RuleAnalysisCache cache, BuckEventBus eventBus)
DepsAwareExecutor and using the given
GraphEngineCache. All entries present in the cache will be reused, and newly computed
values will be offered to the cache.public static RuleAnalysisGraphImpl of(GraphComputation<RuleAnalysisKey,RuleAnalysisResult> computation, TargetGraph targetGraph, DepsAwareExecutor<? super ComputeResult,?> depsAwareExecutor, RuleAnalysisCache cache)
DepsAwareExecutor and using the given
GraphEngineCache, and computation.public RuleAnalysisResult get(RuleAnalysisKey lookupKey)
RuleAnalysisGraphRuleAnalysisResult of the given RuleAnalysisKey, starting computation
as necessary. All dependencies required will also be transformed, and cached.get in interface RuleAnalysisGraphlookupKey - the RuleAnalysisKey to find the result forRuleAnalysisResult from analyzing the given RuleAnalysisKeypublic com.google.common.collect.ImmutableMap<RuleAnalysisKey,RuleAnalysisResult> getAll(Set<RuleAnalysisKey> lookupKeys)
RuleAnalysisGraphRuleAnalysisGraph.get(RuleAnalysisKey) but for multiple RuleAnalysisKeysgetAll in interface RuleAnalysisGraph