Class CompressionContext
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.CompressionContext
Context that holds the various dictionaries for compression in WAL.
CompressionContexts are not expected to be shared among threads. Multithreaded use may produce unexpected results.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
(package private) static class
Encapsulates the compression algorithm and its streams that we will use for value compression in this WAL. -
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<CompressionContext.DictionaryIndex,
Dictionary> static final String
static final String
private static final org.slf4j.Logger
(package private) TagCompressionContext
(package private) CompressionContext.ValueCompressor
static final String
-
Constructor Summary
ConstructorDescriptionCompressionContext
(Class<? extends Dictionary> dictType, boolean recoveredEdits, boolean hasTagCompression) CompressionContext
(Class<? extends Dictionary> dictType, boolean recoveredEdits, boolean hasTagCompression, boolean hasValueCompression, Compression.Algorithm valueCompressionType) -
Method Summary
Modifier and TypeMethodDescription(package private) void
clear()
getDictionary
(Enum dictIndex) static Compression.Algorithm
getValueCompressionAlgorithm
(org.apache.hadoop.conf.Configuration conf) boolean
boolean
-
Field Details
-
LOG
-
ENABLE_WAL_TAGS_COMPRESSION
- See Also:
-
ENABLE_WAL_VALUE_COMPRESSION
- See Also:
-
WAL_VALUE_COMPRESSION_TYPE
- See Also:
-
dictionaries
-
tagCompressionContext
-
valueCompressor
-
-
Constructor Details
-
CompressionContext
public CompressionContext(Class<? extends Dictionary> dictType, boolean recoveredEdits, boolean hasTagCompression, boolean hasValueCompression, Compression.Algorithm valueCompressionType) throws SecurityException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, IOException -
CompressionContext
public CompressionContext(Class<? extends Dictionary> dictType, boolean recoveredEdits, boolean hasTagCompression) throws SecurityException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, IOException
-
-
Method Details
-
hasTagCompression
-
hasValueCompression
-
getDictionary
-
getValueCompressor
-
clear
void clear() -
getValueCompressionAlgorithm
public static Compression.Algorithm getValueCompressionAlgorithm(org.apache.hadoop.conf.Configuration conf)
-