stupidb.functions.ranking.core

Classes

RankingAggregate(order_by_values)

Base ranking aggregation class.

RankingAggregator(order_by_values, ...)

Custom aggregator for ranking window functions.

class stupidb.functions.ranking.core.RankingAggregate(order_by_values)[source]

Base ranking aggregation class.

abstract execute(begin, end)[source]

Compute an abstract row rank value for rows between begin and end.

classmethod prepare(possible_peers, getters, order_by_columns)[source]

Construct the aggregator for ranking.

class stupidb.functions.ranking.core.RankingAggregator(order_by_values, aggregate_type)[source]

Custom aggregator for ranking window functions.

This aggregator is required for ranking functions because ranking functions take no arguments, but need access to the rows produced by the ordering key.

See also

stupidb.navigation.NavigationAggregator, stupidb.associative.SegmentTree

query(begin, end)[source]

Compute the aggregation over the range of rows between begin and end.