|View source on GitHub|
Base class for resolver.
Resolver is the logical unit that will be used optionally for input selection.
A resolver subclass must override the resolve() function which takes a
read-only MLMD handler and a dict of
resolve( pipeline_info, metadata_handler, source_channels )
Resolves artifacts from channels by querying MLMD.
pipeline_info: PipelineInfo of the current pipeline. We do not want to query artifacts across pipeline boundary.
metadata_handler: a read-only handler to query MLMD.
source_channels: a key -> channel dict which contains the info of the source channels.
a ResolveResult instance.