SelectorExecutor class

Executes a Selector against an IPLD block store.

The loader function loadNode must return the decoded IPLDNode for a given CID, throwing IPLDLinkError if the block is not available.

Constructors

SelectorExecutor(Future<IPLDNode> _loadNode(CID), {int maxDepth = defaultSelectorMaxDepth, int maxNodes = defaultSelectorMaxNodes, bool includePath = false})
Creates an executor with the given budgets and loader.

Properties

hashCode → int
The hash code for this object.
no setterinherited
includePath → bool
final
maxDepth → int
final
maxNodes → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute(CID root, Selector selector) → Stream<SelectedNode>
Execute the selector starting at root and yield every matched node.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited