Internal
The name of the channel.
Optional
valueReturn a new identical channel, optionally initialized from a checkpoint. Can be thought of as a "restoration" from a checkpoint which is a "snapshot" of the channel's state.
Optional
checkpoint: ValueUpdate the channel's value with the given sequence of updates. The order of the updates in the sequence is arbitrary. This method is called by Pregel for all channels at the end of each step. If there are no updates, it is called with an empty sequence.
Raises InvalidUpdateError if the sequence of updates is invalid. Returns True if the channel was updated, False otherwise.
if the sequence of updates is invalid.
Stores the last value received, can receive at most one value per step.
Since
update
is only called once per step and value can only be of length 1, LastValue always stores the last value of a single node. If multiple nodes attempt to write to this channel in a single step, an error will be thrown.