com.google.cloud.bigtable.hbase2_x.adapters.admin
Class TableAdapter2x
- java.lang.Object
-
- com.google.cloud.bigtable.hbase2_x.adapters.admin.TableAdapter2x
-
@InternalApi public class TableAdapter2x extends Object
Need this extended class asTableAdapter.adapt(HTableDescriptor, CreateTableRequest)
is not binary compatible withadapt(TableDescriptor, byte[][])
Similarly,
ColumnDescriptorAdapter.adapt(HColumnDescriptor)
is not binary compatible withColumnFamilyDescriptor
.- Author:
- spollapally
-
-
Field Summary
Fields Modifier and Type Field and Description protected BigtableInstanceName
bigtableInstanceName
protected static ColumnDescriptorAdapter
columnDescriptorAdapter
-
Constructor Summary
Constructors Constructor and Description TableAdapter2x(BigtableOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description TableDescriptor
adapt(com.google.cloud.bigtable.admin.v2.models.Table table)
adapt.static com.google.cloud.bigtable.admin.v2.models.CreateTableRequest
adapt(TableDescriptor desc, byte[][] splitKeys)
static HColumnDescriptor
toHColumnDescriptor(ColumnFamilyDescriptor column)
-
-
-
Field Detail
-
columnDescriptorAdapter
protected static final ColumnDescriptorAdapter columnDescriptorAdapter
-
bigtableInstanceName
protected final BigtableInstanceName bigtableInstanceName
-
-
Constructor Detail
-
TableAdapter2x
public TableAdapter2x(BigtableOptions options)
-
-
Method Detail
-
adapt
public static com.google.cloud.bigtable.admin.v2.models.CreateTableRequest adapt(TableDescriptor desc, byte[][] splitKeys)
-
toHColumnDescriptor
public static HColumnDescriptor toHColumnDescriptor(ColumnFamilyDescriptor column)
-
adapt
public TableDescriptor adapt(com.google.cloud.bigtable.admin.v2.models.Table table)
adapt.- Parameters:
table
- aTable
object.- Returns:
- a
TableDescriptor
object.
-
-