@InterfaceAudience.Private public final class ReplicationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(ReplicationPeerConfig peerConfig,
TableName tableName)
Returns whether we should replicate the given table.
|
static org.apache.hadoop.conf.Configuration |
getPeerClusterConfiguration(ReplicationPeerConfig peerConfig,
org.apache.hadoop.conf.Configuration baseConf) |
static boolean |
isNamespacesAndTableCFsEqual(ReplicationPeerConfig rpc1,
ReplicationPeerConfig rpc2) |
static boolean |
isReplicationForBulkLoadDataEnabled(org.apache.hadoop.conf.Configuration c) |
static void |
removeAllQueues(ReplicationQueueStorage queueStorage,
String peerId) |
public static org.apache.hadoop.conf.Configuration getPeerClusterConfiguration(ReplicationPeerConfig peerConfig, org.apache.hadoop.conf.Configuration baseConf) throws ReplicationException
ReplicationException
public static void removeAllQueues(ReplicationQueueStorage queueStorage, String peerId) throws ReplicationException
ReplicationException
public static boolean isNamespacesAndTableCFsEqual(ReplicationPeerConfig rpc1, ReplicationPeerConfig rpc2)
public static boolean isReplicationForBulkLoadDataEnabled(org.apache.hadoop.conf.Configuration c)
c
- Configuration to look atpublic static boolean contains(ReplicationPeerConfig peerConfig, TableName tableName)
Copyright © 2007–2019 Cloudera. All rights reserved.