This is the base class for all aggregators. NOTE: The wildcard count aggregator significantly differs from the others and overloads parts of this class.

Hierarchy

  • AggregateEvaluator

    Constructors

    Properties

    distinct: boolean
    superTypeProvider: ISuperTypeProvider
    termTransformer: TermTransformer
    variableValues: Set<string>

    Methods

    • The 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.

      Returns undefined | Term

    • Base implementation of putBindings, that evaluates to a term and then calls putTerm. The WildcardCountAggregator will completely discard this implementation.

      Parameters

      • bindings: Bindings

      Returns Promise<void>