Serializable
public class BigtableInstanceName extends Object implements Serializable
Modifier and Type | Field | Description |
---|---|---|
static String |
BIGTABLE_V2_INSTANCE_FMT |
Constant
BIGTABLE_V2_INSTANCE_FMT="projects/%s/instances/%s" |
static String |
TABLE_SEPARATOR |
Constant
TABLE_SEPARATOR="/tables/" |
Constructor | Description |
---|---|
BigtableInstanceName(String projectId,
String instanceId) |
Constructor for BigtableInstanceName.
|
Modifier and Type | Method | Description |
---|---|---|
String |
getInstanceId() |
|
String |
getInstanceName() |
|
String |
getProjectId() |
|
com.google.bigtable.admin.v2.InstanceName |
toAdminInstanceName() |
|
BigtableClusterName |
toClusterName(String clusterId) |
|
com.google.cloud.bigtable.data.v2.models.InstanceName |
toGcbInstanceName() |
|
String |
toString() |
Get the instance name.
|
String |
toTableId(String tableName) |
Transforms a tableName within this instance of the form
projects/(projectId)/instances/(instanceId)/tables/(tableId) to (tableId).
|
BigtableTableName |
toTableName(String tableId) |
toTableName.
|
String |
toTableNameStr(String tableId) |
toTableNameStr.
|
public static final String BIGTABLE_V2_INSTANCE_FMT
BIGTABLE_V2_INSTANCE_FMT="projects/%s/instances/%s"
public static final String TABLE_SEPARATOR
TABLE_SEPARATOR="/tables/"
public String toTableId(String tableName)
public BigtableTableName toTableName(String tableId)
toTableName.
tableId
- a String
object.BigtableTableName
object.public String getProjectId()
public String getInstanceId()
public String getInstanceName()
public com.google.cloud.bigtable.data.v2.models.InstanceName toGcbInstanceName()
public com.google.bigtable.admin.v2.InstanceName toAdminInstanceName()
public BigtableClusterName toClusterName(String clusterId)