コード例 #1
0
  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)
コード例 #2
0
ファイル: bigtable_api.py プロジェクト: jackd/tensorflow
  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)
コード例 #3
0
 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)
コード例 #4
0
ファイル: bigtable_ops_test.py プロジェクト: zgqsn/tensorflow
 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)