Package org.apache.hadoop.hbase.util
Class TableDescriptorChecker
java.lang.Object
org.apache.hadoop.hbase.util.TableDescriptorChecker
Only used for master to sanity check 
TableDescriptor.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static interface
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static voidcheckBloomFilterType(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) static voidcheckClassLoading(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) private static voidcheckCompactionPolicy(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) static voidcheckCompression(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) private static voidcheckDateTieredCompactionForTimeRangeDataTiering(org.apache.hadoop.conf.Configuration conf) private static voidcheckDateTieredCompactionForTimeRangeDataTiering(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) static voidcheckEncryption(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) private static voidcheckReplicationScope(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) static voidsanityCheck(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 booleanshouldSanityCheck(org.apache.hadoop.conf.Configuration conf) private static voidwarnOrThrowExceptionForFailure(boolean logWarn, String message, Exception cause) private static voidwarnOrThrowExceptionForFailure(boolean logWarn, TableDescriptorChecker.ThrowingRunnable runnable) private static voidwarnOrThrowExceptionForFailure(org.apache.hadoop.conf.Configuration conf, TableDescriptorChecker.ThrowingRunnable runnable) 
- 
Field Details- 
LOG
- 
TABLE_SANITY_CHECKS- See Also:
 
- 
DEFAULT_TABLE_SANITY_CHECKS- See Also:
 
- 
MASTER_CHECK_COMPRESSION- See Also:
 
- 
DEFAULT_MASTER_CHECK_COMPRESSION- See Also:
 
- 
MASTER_CHECK_ENCRYPTION- See Also:
 
- 
DEFAULT_MASTER_CHECK_ENCRYPTION- See Also:
 
 
- 
- 
Constructor Details- 
TableDescriptorCheckerprivate TableDescriptorChecker()
 
- 
- 
Method Details- 
shouldSanityCheck
- 
sanityCheckpublic static void sanityCheck(org.apache.hadoop.conf.Configuration c, TableDescriptor td) throws IOException Checks whether the table conforms to some sane limits, and configured values (compression, etc) work. Throws an exception if something is wrong.- Throws:
- IOException
 
- 
checkReplicationScopeprivate static void checkReplicationScope(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException - Throws:
- IOException
 
- 
checkDateTieredCompactionForTimeRangeDataTieringprivate static void checkDateTieredCompactionForTimeRangeDataTiering(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException - Throws:
- IOException
 
- 
checkDateTieredCompactionForTimeRangeDataTieringprivate static void checkDateTieredCompactionForTimeRangeDataTiering(org.apache.hadoop.conf.Configuration conf) throws IOException - Throws:
- IOException
 
- 
checkCompactionPolicyprivate static void checkCompactionPolicy(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException - Throws:
- IOException
 
- 
checkBloomFilterTypeprivate static void checkBloomFilterType(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException - Throws:
- IOException
 
- 
checkCompressionpublic static void checkCompression(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException - Throws:
- IOException
 
- 
checkEncryptionpublic static void checkEncryption(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException - Throws:
- IOException
 
- 
checkClassLoadingpublic static void checkClassLoading(org.apache.hadoop.conf.Configuration conf, TableDescriptor td) throws IOException - Throws:
- IOException
 
- 
warnOrThrowExceptionForFailureprivate static void warnOrThrowExceptionForFailure(boolean logWarn, String message, Exception cause) throws IOException - Throws:
- IOException
 
- 
warnOrThrowExceptionForFailureprivate static void warnOrThrowExceptionForFailure(org.apache.hadoop.conf.Configuration conf, TableDescriptorChecker.ThrowingRunnable runnable) throws IOException - Throws:
- IOException
 
- 
warnOrThrowExceptionForFailureprivate static void warnOrThrowExceptionForFailure(boolean logWarn, TableDescriptorChecker.ThrowingRunnable runnable) throws IOException - Throws:
- IOException
 
 
-