@InterfaceAudience.Private @InterfaceStability.Stable public final class ReplicationSerDeHelper extends Object
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF[] |
convert(Map<TableName,? extends Collection<String>> tableCfs)
convert map to TableCFs Object
|
static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF[] |
convert(String tableCFsConfig)
Convert string to TableCFs Object.
|
static String |
convert(org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF[] tableCFs)
Convert TableCFs Object to String.
|
static Map<TableName,List<String>> |
convert2Map(org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF[] tableCFs)
Convert tableCFs Object to Map.
|
static String |
convertToString(Map<TableName,? extends Collection<String>> tableCfs) |
static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF |
getTableCF(org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF[] tableCFs,
String table)
Get TableCF in TableCFs, if not exist, return null.
|
static ReplicationPeerConfig |
parsePeerFrom(byte[] bytes) |
static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF[] |
parseTableCFs(byte[] bytes)
Parse bytes into TableCFs.
|
static Map<TableName,List<String>> |
parseTableCFsFromConfig(String tableCFsConfig)
Convert tableCFs string into Map.
|
static byte[] |
toByteArray(ReplicationPeerConfig peerConfig) |
public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF[] convert(Map<TableName,? extends Collection<String>> tableCfs)
public static String convertToString(Map<TableName,? extends Collection<String>> tableCfs)
public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF[] convert(String tableCFsConfig)
public static String convert(org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF[] tableCFs)
public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF getTableCF(org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF[] tableCFs, String table)
public static org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF[] parseTableCFs(byte[] bytes) throws IOException
IOException
public static Map<TableName,List<String>> parseTableCFsFromConfig(String tableCFsConfig)
public static Map<TableName,List<String>> convert2Map(org.apache.hadoop.hbase.protobuf.generated.ZooKeeperProtos.TableCF[] tableCFs)
public static ReplicationPeerConfig parsePeerFrom(byte[] bytes) throws DeserializationException
bytes
- Content of a peer znode.DeserializationException
public static byte[] toByteArray(ReplicationPeerConfig peerConfig)
peerConfig
- peerConfig
with pb magic prefix prepended suitable
for use as content of a this.peersZNode; i.e. the content of PEER_ID znode under
/hbase/replication/peers/PEER_IDCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.