com.google.cloud.bigtable.hbase.util
Class ModifyTableBuilder
- java.lang.Object
-
- com.google.cloud.bigtable.hbase.util.ModifyTableBuilder
-
@InternalApi public class ModifyTableBuilder extends Object
Utility to createModifyColumnFamiliesRequest
from HBaseHColumnDescriptor
s.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description ModifyTableBuilder
add(HColumnDescriptor addColumnFamily)
com.google.cloud.bigtable.admin.v2.models.ModifyColumnFamiliesRequest
build()
static ModifyTableBuilder
buildModifications(HTableDescriptor newTableDesc, HTableDescriptor currentTableDesc)
This method will buildModifyColumnFamiliesRequest
objects based on a diff of the new and existing set of column descriptors.ModifyTableBuilder
delete(String familyId)
ModifyTableBuilder
modify(HColumnDescriptor modifyColumnFamily)
static ModifyTableBuilder
newBuilder(TableName tableName)
-
-
-
Method Detail
-
newBuilder
public static ModifyTableBuilder newBuilder(TableName tableName)
-
buildModifications
public static ModifyTableBuilder buildModifications(HTableDescriptor newTableDesc, HTableDescriptor currentTableDesc)
This method will buildModifyColumnFamiliesRequest
objects based on a diff of the new and existing set of column descriptors. This is for use inorg.apache.hadoop.hbase.client.Admin#modifyTable(TableName, HTableDescriptor)
.- Parameters:
newTableDesc
- aHTableDescriptor
object.currentTableDesc
- aHTableDescriptor
object.- Returns:
- a
ModifyTableBuilder
object to request modification along with GCRule.
-
add
public ModifyTableBuilder add(HColumnDescriptor addColumnFamily)
-
modify
public ModifyTableBuilder modify(HColumnDescriptor modifyColumnFamily)
-
delete
public ModifyTableBuilder delete(String familyId)
-
build
public com.google.cloud.bigtable.admin.v2.models.ModifyColumnFamiliesRequest build()
-
-