@InterfaceAudience.Private public final class TableDescriptorChecker extends Object
TableDescriptor
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_MASTER_CHECK_COMPRESSION |
static boolean |
DEFAULT_MASTER_CHECK_ENCRYPTION |
static boolean |
DEFAULT_TABLE_SANITY_CHECKS |
private static org.slf4j.Logger |
LOG |
static String |
MASTER_CHECK_COMPRESSION |
static String |
MASTER_CHECK_ENCRYPTION |
static String |
TABLE_SANITY_CHECKS |
Modifier | Constructor and Description |
---|---|
private |
TableDescriptorChecker() |
Modifier and Type | Method and Description |
---|---|
private static void |
checkBloomFilterType(ColumnFamilyDescriptor cfd) |
static void |
checkClassLoading(org.apache.hadoop.conf.Configuration conf,
TableDescriptor td) |
private static void |
checkCompactionPolicy(org.apache.hadoop.conf.Configuration conf,
TableDescriptor td) |
static void |
checkCompression(TableDescriptor td) |
static void |
checkEncryption(org.apache.hadoop.conf.Configuration conf,
TableDescriptor td) |
private static void |
checkReplicationScope(ColumnFamilyDescriptor cfd) |
static void |
sanityCheck(org.apache.hadoop.conf.Configuration c,
TableDescriptor td)
Checks whether the table conforms to some sane limits, and configured
values (compression, etc) work.
|
private static void |
warnOrThrowExceptionForFailure(boolean logWarn,
String message,
Exception cause) |
private static org.slf4j.Logger LOG
public static final String TABLE_SANITY_CHECKS
public static final boolean DEFAULT_TABLE_SANITY_CHECKS
public static final String MASTER_CHECK_COMPRESSION
public static final boolean DEFAULT_MASTER_CHECK_COMPRESSION
public static final String MASTER_CHECK_ENCRYPTION
public static final boolean DEFAULT_MASTER_CHECK_ENCRYPTION
private TableDescriptorChecker()
public static void sanityCheck(org.apache.hadoop.conf.Configuration c, TableDescriptor td) throws IOException
IOException
private static void checkReplicationScope(ColumnFamilyDescriptor cfd) throws IOException
IOException
private static void checkCompactionPolicy(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException
IOException
private static void checkBloomFilterType(ColumnFamilyDescriptor cfd) throws IOException
IOException
public static void checkCompression(TableDescriptor td) throws IOException
IOException
public static void checkEncryption(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException
IOException
public static void checkClassLoading(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException
IOException
private static void warnOrThrowExceptionForFailure(boolean logWarn, String message, Exception cause) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.