AbstractProtectedconstructorProtected ReadonlydistinctProtected ReadonlyevaluatorProtected ReadonlysuperProtected ReadonlytermProtected ReadonlyvariableThe spec says to throw an error when a set function is called on an empty set (unless explicitly mentioned otherwise like COUNT). However, aggregate error handling says to not bind the result in case of an error. So to simplify logic in the caller, we return undefined by default.
Base implementation of putBindings, that evaluates to a term and then calls putTerm. The WildcardCountAggregator will completely discard this implementation.
Protected AbstractputProtected AbstracttermProtectedterm
This is the base class for all aggregators. NOTE: The wildcard count aggregator significantly differs from the others and overloads parts of this class. TODO(next major): In the extension aggregator (NamedAggregator) we basically have a copy of this AggregateEvaluator, but that one supports a list of arguments. Instead, we should generalize this class to a list of arguments, possibly empty, and to asynchronous putTerm and termResult. That way, the aggregator of extension aggregates (NamedAggregator) extend this abstract class instead of near-copying implementation.