Google BigQuery Storage V1 Client - Class ReadRowsResponse (1.9.0)

Reference documentation and code samples for the Google BigQuery Storage V1 Client class ReadRowsResponse.

Response from calling ReadRows may include row data, progress and throttling information.

Generated from protobuf message google.cloud.bigquery.storage.v1.ReadRowsResponse

Namespace

Google \ Cloud \ BigQuery \ Storage \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ avro_rows Google\Cloud\BigQuery\Storage\V1\AvroRows

Serialized row data in AVRO format.

↳ arrow_record_batch Google\Cloud\BigQuery\Storage\V1\ArrowRecordBatch

Serialized row data in Arrow RecordBatch format.

↳ row_count int|string

Number of serialized rows in the rows block.

↳ stats Google\Cloud\BigQuery\Storage\V1\StreamStats

Statistics for the stream.

↳ throttle_state Google\Cloud\BigQuery\Storage\V1\ThrottleState

Throttling state. If unset, the latest response still describes the current throttling status.

↳ avro_schema Google\Cloud\BigQuery\Storage\V1\AvroSchema

Output only. Avro schema.

↳ arrow_schema Google\Cloud\BigQuery\Storage\V1\ArrowSchema

Output only. Arrow schema.

↳ uncompressed_byte_size int|string

Optional. If the row data in this ReadRowsResponse is compressed, then uncompressed byte size is the original size of the uncompressed row data. If it is set to a value greater than 0, then decompress into a buffer of size uncompressed_byte_size using the compression codec that was requested during session creation time and which is specified in TableReadOptions.response_compression_codec in ReadSession. This value is not set if no response_compression_codec was not requested and it is -1 if the requested compression would not have reduced the size of this ReadRowsResponse's row data. This attempts to match Apache Arrow's behavior described here https://github.com/apache/arrow/issues/15102 where the uncompressed length may be set to -1 to indicate that the data that follows is not compressed, which can be useful for cases where compression does not yield appreciable savings. When uncompressed_byte_size is not greater than 0, the client should skip decompression.

getAvroRows

Serialized row data in AVRO format.

Returns
TypeDescription
Google\Cloud\BigQuery\Storage\V1\AvroRows|null

hasAvroRows

setAvroRows

Serialized row data in AVRO format.

Parameter
NameDescription
var Google\Cloud\BigQuery\Storage\V1\AvroRows
Returns
TypeDescription
$this

getArrowRecordBatch

Serialized row data in Arrow RecordBatch format.

Returns
TypeDescription
Google\Cloud\BigQuery\Storage\V1\ArrowRecordBatch|null

hasArrowRecordBatch

setArrowRecordBatch

Serialized row data in Arrow RecordBatch format.

Parameter
NameDescription
var Google\Cloud\BigQuery\Storage\V1\ArrowRecordBatch
Returns
TypeDescription
$this

getRowCount

Number of serialized rows in the rows block.

Returns
TypeDescription
int|string

setRowCount

Number of serialized rows in the rows block.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getStats

Statistics for the stream.

Returns
TypeDescription
Google\Cloud\BigQuery\Storage\V1\StreamStats|null

hasStats

clearStats

setStats

Statistics for the stream.

Parameter
NameDescription
var Google\Cloud\BigQuery\Storage\V1\StreamStats
Returns
TypeDescription
$this

getThrottleState

Throttling state. If unset, the latest response still describes the current throttling status.

Returns
TypeDescription
Google\Cloud\BigQuery\Storage\V1\ThrottleState|null

hasThrottleState

clearThrottleState

setThrottleState

Throttling state. If unset, the latest response still describes the current throttling status.

Parameter
NameDescription
var Google\Cloud\BigQuery\Storage\V1\ThrottleState
Returns
TypeDescription
$this

getAvroSchema

Output only. Avro schema.

Returns
TypeDescription
Google\Cloud\BigQuery\Storage\V1\AvroSchema|null

hasAvroSchema

setAvroSchema

Output only. Avro schema.

Parameter
NameDescription
var Google\Cloud\BigQuery\Storage\V1\AvroSchema
Returns
TypeDescription
$this

getArrowSchema

Output only. Arrow schema.

Returns
TypeDescription
Google\Cloud\BigQuery\Storage\V1\ArrowSchema|null

hasArrowSchema

setArrowSchema

Output only. Arrow schema.

Parameter
NameDescription
var Google\Cloud\BigQuery\Storage\V1\ArrowSchema
Returns
TypeDescription
$this

getUncompressedByteSize

Optional. If the row data in this ReadRowsResponse is compressed, then uncompressed byte size is the original size of the uncompressed row data.

If it is set to a value greater than 0, then decompress into a buffer of size uncompressed_byte_size using the compression codec that was requested during session creation time and which is specified in TableReadOptions.response_compression_codec in ReadSession. This value is not set if no response_compression_codec was not requested and it is -1 if the requested compression would not have reduced the size of this ReadRowsResponse's row data. This attempts to match Apache Arrow's behavior described here https://github.com/apache/arrow/issues/15102 where the uncompressed length may be set to -1 to indicate that the data that follows is not compressed, which can be useful for cases where compression does not yield appreciable savings. When uncompressed_byte_size is not greater than 0, the client should skip decompression.

Returns
TypeDescription
int|string

hasUncompressedByteSize

clearUncompressedByteSize

setUncompressedByteSize

Optional. If the row data in this ReadRowsResponse is compressed, then uncompressed byte size is the original size of the uncompressed row data.

If it is set to a value greater than 0, then decompress into a buffer of size uncompressed_byte_size using the compression codec that was requested during session creation time and which is specified in TableReadOptions.response_compression_codec in ReadSession. This value is not set if no response_compression_codec was not requested and it is -1 if the requested compression would not have reduced the size of this ReadRowsResponse's row data. This attempts to match Apache Arrow's behavior described here https://github.com/apache/arrow/issues/15102 where the uncompressed length may be set to -1 to indicate that the data that follows is not compressed, which can be useful for cases where compression does not yield appreciable savings. When uncompressed_byte_size is not greater than 0, the client should skip decompression.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getRows

Returns
TypeDescription
string

getSchema

Returns
TypeDescription
string