AggregateFilter (autotransform.filter.aggregate)

The implementation for the AggregateFilter.

class autotransform.filter.aggregate.AggregateFilter(*, inverted: bool = False, aggregator: AggregatorType, filters: List[Filter])

Bases: Filter

A Filter which aggregates a list of Filters using the supplied aggregator and returns the result of the aggregation.

aggregator

How to aggregate the filters, using any or all.

Type:

AggregatorType

filters

The filters to be aggregated.

Type:

List[Filter]

name

The name of the Component.

Type:

ClassVar[FilterName]

aggregator: AggregatorType
filters: List[Filter]
classmethod from_data(data: Dict[str, Any]) AggregateFilter

Produces an instance of the component from decoded data.

Parameters:

data (Dict[str, Any]) – The JSON decoded data.

Returns:

An instance of the component.

Return type:

AggregateFilter

name: ClassVar[FilterName] = 'aggregate'