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();
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Bigtable Client - Class ChunkFormatter (2.17.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.17.1 (latest)](/php/docs/reference/cloud-bigtable/latest/ChunkFormatter)\n- [2.17.0](/php/docs/reference/cloud-bigtable/2.17.0/ChunkFormatter)\n- [2.16.0](/php/docs/reference/cloud-bigtable/2.16.0/ChunkFormatter)\n- [2.15.0](/php/docs/reference/cloud-bigtable/2.15.0/ChunkFormatter)\n- [2.14.0](/php/docs/reference/cloud-bigtable/2.14.0/ChunkFormatter)\n- [2.13.0](/php/docs/reference/cloud-bigtable/2.13.0/ChunkFormatter)\n- [2.12.0](/php/docs/reference/cloud-bigtable/2.12.0/ChunkFormatter)\n- [2.11.1](/php/docs/reference/cloud-bigtable/2.11.1/ChunkFormatter)\n- [2.9.1](/php/docs/reference/cloud-bigtable/2.9.1/ChunkFormatter)\n- [2.8.0](/php/docs/reference/cloud-bigtable/2.8.0/ChunkFormatter)\n- [2.7.0](/php/docs/reference/cloud-bigtable/2.7.0/ChunkFormatter)\n- [2.6.3](/php/docs/reference/cloud-bigtable/2.6.3/ChunkFormatter)\n- [2.5.0](/php/docs/reference/cloud-bigtable/2.5.0/ChunkFormatter)\n- [2.4.0](/php/docs/reference/cloud-bigtable/2.4.0/ChunkFormatter)\n- [2.3.0](/php/docs/reference/cloud-bigtable/2.3.0/ChunkFormatter)\n- [2.2.1](/php/docs/reference/cloud-bigtable/2.2.1/ChunkFormatter)\n- [2.1.0](/php/docs/reference/cloud-bigtable/2.1.0/ChunkFormatter)\n- [2.0.1](/php/docs/reference/cloud-bigtable/2.0.1/ChunkFormatter)\n- [1.32.1](/php/docs/reference/cloud-bigtable/1.32.1/ChunkFormatter)\n- [1.31.1](/php/docs/reference/cloud-bigtable/1.31.1/ChunkFormatter)\n- [1.30.0](/php/docs/reference/cloud-bigtable/1.30.0/ChunkFormatter)\n- [1.29.2](/php/docs/reference/cloud-bigtable/1.29.2/ChunkFormatter)\n- [1.28.3](/php/docs/reference/cloud-bigtable/1.28.3/ChunkFormatter)\n- [1.27.0](/php/docs/reference/cloud-bigtable/1.27.0/ChunkFormatter)\n- [1.26.2](/php/docs/reference/cloud-bigtable/1.26.2/ChunkFormatter)\n- [1.25.0](/php/docs/reference/cloud-bigtable/1.25.0/ChunkFormatter)\n- [1.24.1](/php/docs/reference/cloud-bigtable/1.24.1/ChunkFormatter)\n- [1.23.0](/php/docs/reference/cloud-bigtable/1.23.0/ChunkFormatter)\n- [1.22.2](/php/docs/reference/cloud-bigtable/1.22.2/ChunkFormatter)\n- [1.21.1](/php/docs/reference/cloud-bigtable/1.21.1/ChunkFormatter)\n- [1.20.3](/php/docs/reference/cloud-bigtable/1.20.3/ChunkFormatter) \nReference documentation and code samples for the Cloud Bigtable Client class ChunkFormatter.\n\nConverts cell chunks into an easily digestable format. Please note this class\nimplements the IteratorAggregate interface, and as such can be iterated over\ndirectly in order to access the formatted rows.\n\nExample: \n\n use Google\\Cloud\\Bigtable\\BigtableClient;\n\n $bigtable = new BigtableClient();\n $table = $bigtable-\u003etable('my-instance', 'my-table');\n $formatter = $table-\u003ereadRows();\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Bigtable\n\nMethods\n-------\n\n### __construct\n\nConstructs the ChunkFormatter.\n\n### readAll\n\nFormats the row's chunks into a friendly format.\n\nExample: \n\n $rows = $formatter-\u003ereadAll();\n\n### getIterator\n\n### __debugInfo\n\nRepresent the class in a more readable and digestable fashion."]]