January 2020
Intermediate to advanced
640 pages
16h 56m
English
To facilitate efficient name-based aggregator lookups, Graph instances store aggregators in a map where the aggregator name is used as a key. New aggregator instances can be linked to a Graph instance through the RegisterAggregator method:
func (g *Graph) RegisterAggregator(name string, aggr Aggregator) { g.aggregators[name] = aggr }
Compute functions that need access to a particular aggregator can invoke the Aggregator method to look up a registered aggregator instance by name:
func (g *Graph) Aggregator(name string) Aggregator { return g.aggregators[name] }
In an effort to make it easier for clients to create snapshots of the graph's state, we will also be providing the auxiliary Aggregators method, ...
Read now
Unlock full access