Cloud Bigtable Client - Class ChunkFormatter (2.2.1)

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

Converts cell chunks into an easily digestable format. Please note this class implements the IteratorAggregate interface, and as such can be iterated over directly in order to access the formatted rows.

Example:

use Google\Cloud\Bigtable\BigtableClient;

$bigtable = new BigtableClient();
$table = $bigtable->table('my-instance', 'my-table');
$formatter = $table->readRows();

Namespace

Google \ Cloud \ Bigtable

Methods

__construct

Constructs the ChunkFormatter.

Parameters
Name Description
gapicClient Google\Cloud\Bigtable\V2\Client\BigtableClient

The GAPIC client to use in order to send requests.

request Google\Cloud\Bigtable\V2\ReadRowsRequest

The proto request to be passed to the Gapic client.

options array

[optional] Configuration options for read rows call.

readAll

Formats the row's chunks into a friendly format.

Example:

$rows = $formatter->readAll();
Returns
Type Description
Generator

getIterator

Returns
Type Description
Generator

__debugInfo

Represent the class in a more readable and digestable fashion.