stupidb.functions.associative.core

Classes

AbstractAssociativeAggregate()

Base class for aggregations with an associative binary operation.

BinaryAssociativeAggregate()

A an abstract associative aggregate that takes two arguments.

UnaryAssociativeAggregate()

A an abstract associative aggregate that takes one argument.

class stupidb.functions.associative.core.AbstractAssociativeAggregate[source]

Base class for aggregations with an associative binary operation.

abstract finalize()[source]

Compute the value of the aggregation from its current state.

class stupidb.functions.associative.core.BinaryAssociativeAggregate[source]

A an abstract associative aggregate that takes two arguments.

abstract combine(other)[source]

Combine two BinaryAssociativeAggregate instances.

Return type

None

abstract finalize()[source]

Compute the value of the aggregation from its current state.

abstract step(input1, input2)[source]

Perform a single step of the aggregation.

class stupidb.functions.associative.core.UnaryAssociativeAggregate[source]

A an abstract associative aggregate that takes one argument.

abstract combine(other)[source]

Combine two UnaryAssociativeAggregate instances.

Return type

None

abstract finalize()[source]

Compute the value of the aggregation from its current state.

abstract step(input1)[source]

Perform a single step of the aggregation.