com.google.cloud.bigtable.grpc
Class BigtableTableName
- java.lang.Object
-
- com.google.cloud.bigtable.grpc.BigtableTableName
-
public class BigtableTableName extends Object
This class encapsulates a tableName. A tableName is of the form projects/(projectId)/zones/(zoneId)/clusters/(clusterId)/tables/(tableId).- Version:
- $Id: $Id
- Author:
- sduskis
-
-
Constructor Summary
Constructors Constructor and Description BigtableTableName(String tableName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description String
getInstanceId()
String
getProjectId()
String
getTableId()
String
toString()
-
-
-
Constructor Detail
-
BigtableTableName
public BigtableTableName(String tableName)
-
-
Method Detail
-
getProjectId
public String getProjectId()
- Returns:
- The id of the project that contains this table. It's the first group in the table name name: "projects/{projectId}/instances/{instanceId}/tables/{tableId}".
-
getInstanceId
public String getInstanceId()
- Returns:
- The id of the instance that contains this table. It's the second group in the table name name: "projects/{projectId}/instances/{instanceId}/tables/{tableId}".
-
getTableId
public String getTableId()
- Returns:
- The id of the table. It's the third group in the table name name: "projects/{projectId}/instances/{instanceId}/tables/{tableId}".
-
-