tf.contrib.cloud.BigtableClient
BigtableClient is the entrypoint for interacting with Cloud Bigtable in TF.
tf.contrib.cloud.BigtableClient(
project_id, instance_id, connection_pool_size=None,
max_receive_message_size=None
)
BigtableClient encapsulates a connection to Cloud Bigtable, and exposes the
table
method to open a Bigtable table.
Args |
project_id
|
A string representing the GCP project id to connect to.
|
instance_id
|
A string representing the Bigtable instance to connect to.
|
connection_pool_size
|
(Optional.) A number representing the number of
concurrent connections to the Cloud Bigtable service to make.
|
max_receive_message_size
|
(Optional.) The maximum bytes received in a
single gRPC response.
|
Raises |
ValueError
|
if the arguments are invalid (e.g. wrong type, or out of
expected ranges (e.g. negative).)
|
Methods
table
View source
table(
name, snapshot=None
)
Opens a table and returns a tf.contrib.bigtable.BigtableTable
object.
Args |
name
|
A tf.string tf.Tensor name of the table to open.
|
snapshot
|
Either a tf.string tf.Tensor snapshot id, or True to
request the creation of a snapshot. (Note: currently unimplemented.)
|
Returns |
A tf.contrib.bigtable.BigtableTable Python object representing the
operations available on the table.
|
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 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[]]