com.google.cloud.bigtable.hbase.adapters.admin
Class TableAdapter
- java.lang.Object
-
- com.google.cloud.bigtable.hbase.adapters.admin.TableAdapter
-
@InternalApi public class TableAdapter extends Object
TableAdapter class.- Version:
- $Id: $Id
- Author:
- sduskis
-
-
Field Summary
Fields Modifier and Type Field and Description protected BigtableInstanceName
bigtableInstanceName
-
Constructor Summary
Constructors Constructor and Description TableAdapter(BigtableInstanceName bigtableInstanceName)
Constructor for TableAdapter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static com.google.cloud.bigtable.admin.v2.models.CreateTableRequest
adapt(HTableDescriptor desc, byte[][] splitKeys)
protected static void
adapt(HTableDescriptor desc, com.google.cloud.bigtable.admin.v2.models.CreateTableRequest request)
adapt.HTableDescriptor
adapt(com.google.cloud.bigtable.admin.v2.models.Table table)
adapt.static void
addSplitKeys(byte[][] splitKeys, com.google.cloud.bigtable.admin.v2.models.CreateTableRequest request)
-
-
-
Field Detail
-
bigtableInstanceName
protected final BigtableInstanceName bigtableInstanceName
-
-
Constructor Detail
-
TableAdapter
public TableAdapter(BigtableInstanceName bigtableInstanceName)
Constructor for TableAdapter.- Parameters:
bigtableInstanceName
- aBigtableInstanceName
object.
-
-
Method Detail
-
adapt
protected static void adapt(HTableDescriptor desc, com.google.cloud.bigtable.admin.v2.models.CreateTableRequest request)
adapt. This method adapts ColumnFamily to CreateTableRequest.- Parameters:
desc
- aHTableDescriptor
object.request
- aCreateTableRequest
-
adapt
public static com.google.cloud.bigtable.admin.v2.models.CreateTableRequest adapt(HTableDescriptor desc, byte[][] splitKeys)
-
addSplitKeys
public static void addSplitKeys(byte[][] splitKeys, com.google.cloud.bigtable.admin.v2.models.CreateTableRequest request)
-
adapt
public HTableDescriptor adapt(com.google.cloud.bigtable.admin.v2.models.Table table)
adapt.- Parameters:
table
- aTable
object.- Returns:
- a
HTableDescriptor
object.
-
-