Class ConditionalRowFilter (2.11.2)

ConditionalRowFilter(base_filter, true_filter=None, false_filter=None)

Conditional row filter which exhibits ternary behavior.

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

Parameters

NameDescription
base_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 base_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 base_filter. If not provided, no results will be returned in the false case.

Inheritance

builtins.object > RowFilter > ConditionalRowFilter

Methods

to_pb

to_pb()

Converts the row filter to a protobuf.

Returns
TypeDescription
`.data_v2_pb2.RowFilter`The converted current object.