def table(self, name, snapshot=None): """Opens a table and returns a `BigTable` 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 `BigTable` python object representing the operations available on the table. """ # TODO(saeta): Implement snapshot functionality. table = gen_bigtable_ops.bigtable_table(self._resource, name) return BigTable(name, snapshot, table)
def table(self, 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. """ # TODO(saeta): Implement snapshot functionality. table = gen_bigtable_ops.bigtable_table(self._resource, name) return BigtableTable(name, snapshot, table)
def setUp(self): self._client = gen_bigtable_test_ops.bigtable_test_client() table = gen_bigtable_ops.bigtable_table(self._client, "testtable") self._table = bigtable.BigTable("testtable", None, table)
def setUp(self): self._client = gen_bigtable_test_ops.bigtable_test_client() table = gen_bigtable_ops.bigtable_table(self._client, "testtable") self._table = bigtable.BigTable("testtable", None, table)