@InterfaceAudience.Private @InterfaceStability.Stable public final class ReplicationPeerConfigUtil extends Object
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.TableCF[] convert(Map<TableName,? extends Collection<String>> tableCfs)
public static String convertToString(Map<TableName,? extends Collection<String>> tableCfs)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.TableCF[] convert(String tableCFsConfig)
public static String convert(org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.TableCF[] tableCFs)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.TableCF getTableCF(org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.TableCF[] tableCFs, String table)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.TableCF[] parseTableCFs(byte[] bytes) throws IOException
IOExceptionpublic static Map<TableName,List<String>> parseTableCFsFromConfig(String tableCFsConfig)
public static Map<TableName,List<String>> convert2Map(org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.TableCF[] tableCFs)
public static ReplicationPeerConfig parsePeerFrom(byte[] bytes) throws DeserializationException
bytes - Content of a peer znode.DeserializationExceptionpublic static ReplicationPeerConfig convert(org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.ReplicationPeer peer)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.ReplicationPeer convert(ReplicationPeerConfig peerConfig)
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_IDpublic static ReplicationPeerDescription toReplicationPeerDescription(org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.ReplicationPeerDescription desc)
public static org.apache.hadoop.hbase.shaded.protobuf.generated.ReplicationProtos.ReplicationPeerDescription toProtoReplicationPeerDescription(ReplicationPeerDescription desc)
public static ReplicationPeerConfig appendTableCFsToReplicationPeerConfig(Map<TableName,List<String>> tableCfs, ReplicationPeerConfig peerConfig)
public static ReplicationPeerConfig removeTableCFsFromReplicationPeerConfig(Map<TableName,List<String>> tableCfs, ReplicationPeerConfig peerConfig, String id) throws ReplicationException
ReplicationExceptionpublic static org.apache.hadoop.conf.Configuration getPeerClusterConfiguration(org.apache.hadoop.conf.Configuration conf,
ReplicationPeerDescription peer)
throws IOException
conf - the base configurationpeer - the description of replication peerIOException - when create peer cluster configuration failedCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.