Class ValueRangeFilter (2.7.1)

ValueRangeFilter(
    start_value=None, end_value=None, inclusive_start=None, inclusive_end=None
)

A range of values to restrict to in a row filter.

Will only match cells that have values in this range.

Both the start and end value can be included or excluded in the range. By default, we include them both, but this can be changed with optional flags.

Parameters

NameDescription
start_value bytes

The start of the range of values. If no value is used, the backend applies no lower bound to the values.

end_value bytes

The end of the range of values. If no value is used, the backend applies no upper bound to the values.

inclusive_start bool

Boolean indicating if the start value should be included in the range (or excluded). Defaults to :data:True if start_value is passed and no inclusive_start was given.

inclusive_end bool

Boolean indicating if the end value should be included in the range (or excluded). Defaults to :data:True if end_value is passed and no inclusive_end was given.

Methods

to_pb

to_pb()

Converts the row filter to a protobuf.

First converts to a .data_v2_pb2.ValueRange and then uses it to create a row filter protobuf.

Returns
TypeDescription
.data_v2_pb2.RowFilterThe converted current object.