Class ConditionalRowFilter (2.26.0)

ConditionalRowFilter(
    predicate_filter: google.cloud.bigtable.data.row_filters.RowFilter,
    true_filter: typing.Optional[
        google.cloud.bigtable.data.row_filters.RowFilter
    ] = None,
    false_filter: typing.Optional[
        google.cloud.bigtable.data.row_filters.RowFilter
    ] = None,
)

Conditional row filter which exhibits ternary behavior.

Executes one of two filters based on another filter. If the predicate_filter returns any cells in the row, then true_filter is executed. If not, then false_filter is executed.

Parameters

Name Description
predicate_filter RowFilter

The filter to condition on before executing the true/false filters.

true_filter RowFilter

(Optional) The filter to execute if there are any cells matching predicate_filter. If not provided, no results will be returned in the true case.

false_filter RowFilter

(Optional) The filter to execute if there are no cells matching predicate_filter. If not provided, no results will be returned in the false case.