Class AppendRowsStream (2.10.1)
Stay organized with collections
Save and categorize content based on your preferences.
AppendRowsStream(
client: google.cloud.bigquery_storage_v1beta2.services.big_query_write.client.BigQueryWriteClient,
initial_request_template: google.cloud.bigquery_storage_v1beta2.types.storage.AppendRowsRequest,
metadata: Sequence[Tuple[str, str]] = (),
)
A manager object which can append rows to a stream.
Properties
is_active
bool: True if this manager is actively streaming.
Note that False
does not indicate this is complete shut down,
just that it stopped getting new messages.
Methods
AppendRowsStream
AppendRowsStream(
client: google.cloud.bigquery_storage_v1beta2.services.big_query_write.client.BigQueryWriteClient,
initial_request_template: google.cloud.bigquery_storage_v1beta2.types.storage.AppendRowsRequest,
metadata: Sequence[Tuple[str, str]] = (),
)
Construct a stream manager.
add_close_callback
add_close_callback(callback: Callable)
Schedules a callable when the manager closes.
Parameter
Name | Description |
callback |
Callable
The method to call.
|
close
close(reason: Optional[Exception] = None)
Stop consuming messages and shutdown all helper threads.
This method is idempotent. Additional calls will have no effect.
send
send(
request: google.cloud.bigquery_storage_v1beta2.types.storage.AppendRowsRequest,
)
Send an append rows request to the open stream.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-19 UTC."}
[[["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 2024-09-19 UTC."]]