ColumnRangeFilter(
column_family_id,
start_column=None,
end_column=None,
inclusive_start=None,
inclusive_end=None,
)
A row filter to restrict to a range of columns.
Both the start and end column can be included or excluded in the range. By default, we include them both, but this can be changed with optional flags.
Parameters
Name | Description |
column_family_id |
str
The column family that contains the columns. Must be of the form |
start_column |
bytes
The start of the range of columns. If no value is used, the backend applies no upper bound to the values. |
end_column |
bytes
The end of the range of columns. If no value is used, the backend applies no upper bound to the values. |
inclusive_start |
bool
Boolean indicating if the start column should be included in the range (or excluded). Defaults to :data: |
inclusive_end |
bool
Boolean indicating if the end column should be included in the range (or excluded). Defaults to :data: |
Methods
to_pb
to_pb()
Converts the row filter to a protobuf.
First converts to a .data_v2_pb2.ColumnRange
and then uses it
in the column_range_filter
field.
Type | Description |
`.data_v2_pb2.RowFilter` | The converted current object. |