Cloud Bigtable Client - Class LimitFilter (2.3.0)

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

A builder used to configure limit based filters.

Example:

use Google\Cloud\Bigtable\Filter;

$builder = Filter::limit();

Namespace

Google \ Cloud \ Bigtable \ Filter \ Builder

Methods

cellsPerRow

Matches only the first N cells of each row. If duplicate cells are present, as is possible when using an Google\Cloud\Bigtable\Filter\InterleaveFilter, each copy of the cell is counted separately.

Example:

$limitFilter = $builder->cellsPerRow(2);
Parameter
Name Description
count int

The number of cells to limit to.

Returns
Type Description
Google\Cloud\Bigtable\Filter\SimpleFilter

cellsPerColumn

Matches only the most recent N cells within each column. For example, if count=2, this filter would match column foo:bar at timestamps 10 and 9 skip all earlier cells in foo:bar, and then begin matching again in column foo:bar2. If duplicate cells are present, as is possible when using an Google\Cloud\Bigtable\Filter\InterleaveFilter, each copy of the cell is counted separately.

Example:

$limitFilter = $builder->cellsPerColumn(2);
Parameter
Name Description
count int

The number of cells to limit to.

Returns
Type Description
Google\Cloud\Bigtable\Filter\SimpleFilter