Class Filter (2.13.0)

Define the interfaces to create filter expressions.

Example: ```cpp // Get only data from the "fam" column family, and only the latest value. auto filter = Filter::Chain(Filter::Family("fam"), Filter::Latest(1)); table->ReadRow("foo", std::move(filter));


Those filters that use regular expressions, expect the patterns to be in the [RE2](https://github.com/google/re2/wiki/Syntax) syntax.



<aside class="note"><b>Note:</b>
Special care need be used with the expression used. Some of the filtered values (column names, row keys, cell values) are byte sequences, and can contain arbitrary bytes, the `\C` escape sequence must be used if a true wildcard is desired. The `.` character will not match the new line character `\n`, because `.` means `[^\n]` in RE2. As new line characters may be present in a binary value, you may need to explicitly match it using "\\n". The double escape is necessary because RE2 needs to get the escape sequence. 
</aside>

Constructors

Filter(::google::bigtable::v2::RowFilter)

Parameter
Name Description
rhs ::google::bigtable::v2::RowFilter

Filter(Filter &&)

Parameter
Name Description
Filter &&

Filter(Filter const &)

Parameter
Name Description
Filter const &

Operators

operator=(Filter &&)

Parameter
Name Description
Filter &&
Returns
Type Description
Filter &

operator=(Filter const &)

Parameter
Name Description
Filter const &
Returns
Type Description
Filter &

Functions

static ValueRangeLeftOpen(std::string, std::string)

Return a filter that accepts values in the range [start, end).

The range must be non-empty. The server will reject empty ranges with a grpc::StatusCode::INVALID_ARGUMENT error. This function makes no attempt to validate the timestamp range before sending it to the server.

Parameters
Name Description
start std::string
end std::string
Returns
Type Description
Filter

static ValueRangeRightOpen(std::string, std::string)

Return a filter that accepts values in the range [start, end].

The range must be non-empty. The server will reject empty ranges with a grpc::StatusCode::INVALID_ARGUMENT error. This function makes no attempt to validate the timestamp range before sending it to the server.

Parameters
Name Description
start std::string
end std::string
Returns
Type Description
Filter

static ValueRangeClosed(std::string, std::string)

Return a filter that accepts values in the range [start, end].

The range must be non-empty. The server will reject empty ranges with a grpc::StatusC