tlc.core.objects.tables.from_table.filtered_table_criteria.filter_criterion
#
Module Contents#
Classes#
Class |
Description |
---|---|
The base class for all filter criteria. |
|
API#
- class tlc.core.objects.tables.from_table.filtered_table_criteria.filter_criterion.FilterCriterion(init_parameters: Any = None)#
Bases:
tlc.core.object.Object
The base class for all filter criteria.
A filter criterion is a predicate that can be applied to a row’s attributes to determine whether the row matches the criterion.
- Parameters:
url – The URL of the object.
created – The creation time of the object.
init_parameters – A dictionary containing the initial values of the object’s properties.
- filter_matches(row: Any, schema: tlc.core.schema.Schema | None) bool #
Determines whether the filter criterion matches the given row.
- Parameters:
row – The row to test.
schema – The schema of the row.
- Returns:
True if the row matches the filter criterion, False otherwise.
- class tlc.core.objects.tables.from_table.filtered_table_criteria.filter_criterion.ColumnFilterCriterion(attribute: str | None = None, init_parameters: Any = None)#
Bases:
tlc.core.objects.tables.from_table.filtered_table_criteria.filter_criterion.FilterCriterion