Google BigQuery Storage V1 Client - Class ReadRowsResponse (2.1.2)

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
Name Description
data array

Optional. Data for populating the Message object.

↳ avro_rows AvroRows

Serialized row data in AVRO format.

↳ arrow_record_batch ArrowRecordBatch

Serialized row data in Arrow RecordBatch format.

↳ row_count int|string

Number of serialized rows in the rows block.

↳ stats StreamStats

Statistics for the stream.

↳ throttle_state ThrottleState

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

↳ avro_schema AvroSchema

Output only. Avro schema.

↳ arrow_schema 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
Type Description
AvroRows|null

hasAvroRows

setAvroRows

Serialized row data in AVRO format.

Parameter
Name Description
var AvroRows
Returns
Type Description
$this

getArrowRecordBatch

Serialized row data in Arrow RecordBatch format.

Returns
Type Description
ArrowRecordBatch|null

hasArrowRecordBatch

setArrowRecordBatch

Serialized row data in Arrow RecordBatch format.

Parameter
Name Description
var ArrowRecordBatch
Returns
Type Description
$this

getRowCount

Number of serialized rows in the rows block.

Returns
Type Description
int|string

setRowCount

Number of serialized rows in the rows block.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getStats

Statistics for the stream.

Returns
Type Description
StreamStats|null

hasStats

clearStats

setStats

Statistics for the stream.

Parameter
Name Description
var StreamStats
Returns
Type Description
$this

getThrottleState

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

Returns
Type Description
ThrottleState|null

hasThrottleState

clearThrottleState

setThrottleState

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

Parameter
Name Description
var ThrottleState
Returns
Type Description
$this

getAvroSchema

Output only. Avro schema.

Returns
Type Description
AvroSchema|null

hasAvroSchema

setAvroSchema

Output only. Avro schema.

Parameter
Name Description
var AvroSchema
Returns
Type Description
$this

getArrowSchema

Output only. Arrow schema.

Returns
Type Description
ArrowSchema|null

hasArrowSchema

setArrowSchema

Output only. Arrow schema.

Parameter
Name Description
var ArrowSchema
Returns
Type Description
$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
Type Description
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
Name Description
var int|string
Returns
Type Description
$this

getRows

Returns
Type Description
string

getSchema

Returns
Type Description
string