Cloud Bigtable Client - Class ValueFilter (1.26.2)

Reference documentation and code samples for the Cloud Bigtable Client class ValueFilter.

A builder used to configure value based filters.

Example:

use Google\Cloud\Bigtable\Filter;

$builder = Filter::value();

Namespace

Google \ Cloud \ Bigtable \ Filter \ Builder

Methods

regex

Matches only cells with values that satisfy the given RE2 regex. Note that, since cell values 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, which may be present in a binary value.

Example:

$valueFilter = $builder->regex('prefix.*');
Parameter
NameDescription
value string

A regex value.

Returns
TypeDescription
Google\Cloud\Bigtable\Filter\SimpleFilter

exactMatch

Matches only cells with values that match the given value.

Example:

$valueFilter = $builder->exactMatch('value1');
Parameter
NameDescription
value array|string

An exact value to match.

Returns
TypeDescription
Google\Cloud\Bigtable\Filter\SimpleFilter

range

Returns a builder used to configure value range filters.

Example:

$valueFilter = $builder->range()
    ->of('value1', 'value10');
Returns
TypeDescription
Google\Cloud\Bigtable\Filter\ValueRangeFilter

strip

Replaces each cell's value with an empty string.

Returns
TypeDescription
Google\Cloud\Bigtable\Filter\SimpleFilter