@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"}) public class CompressionContext extends Object
CompressionContexts are not expected to be shared among threads. Multithreaded use may produce unexpected results.
Modifier and Type | Class and Description |
---|---|
static class |
CompressionContext.DictionaryIndex |
(package private) static class |
CompressionContext.ValueCompressor
Encapsulates the compression algorithm and its streams that we will use for value compression
in this WAL.
|
Modifier and Type | Field and Description |
---|---|
private Map<CompressionContext.DictionaryIndex,Dictionary> |
dictionaries |
static String |
ENABLE_WAL_TAGS_COMPRESSION |
static String |
ENABLE_WAL_VALUE_COMPRESSION |
private static org.slf4j.Logger |
LOG |
(package private) TagCompressionContext |
tagCompressionContext |
(package private) CompressionContext.ValueCompressor |
valueCompressor |
static String |
WAL_VALUE_COMPRESSION_TYPE |
Constructor and Description |
---|
CompressionContext(Class<? extends Dictionary> dictType,
boolean recoveredEdits,
boolean hasTagCompression) |
CompressionContext(Class<? extends Dictionary> dictType,
boolean recoveredEdits,
boolean hasTagCompression,
boolean hasValueCompression,
Compression.Algorithm valueCompressionType) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
clear() |
Dictionary |
getDictionary(Enum dictIndex) |
static Compression.Algorithm |
getValueCompressionAlgorithm(org.apache.hadoop.conf.Configuration conf) |
CompressionContext.ValueCompressor |
getValueCompressor() |
boolean |
hasTagCompression() |
boolean |
hasValueCompression() |
private static final org.slf4j.Logger LOG
public static final String ENABLE_WAL_TAGS_COMPRESSION
public static final String ENABLE_WAL_VALUE_COMPRESSION
public static final String WAL_VALUE_COMPRESSION_TYPE
private final Map<CompressionContext.DictionaryIndex,Dictionary> dictionaries
TagCompressionContext tagCompressionContext
CompressionContext.ValueCompressor valueCompressor
public CompressionContext(Class<? extends Dictionary> dictType, boolean recoveredEdits, boolean hasTagCompression, boolean hasValueCompression, Compression.Algorithm valueCompressionType) throws SecurityException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, IOException
public CompressionContext(Class<? extends Dictionary> dictType, boolean recoveredEdits, boolean hasTagCompression) throws SecurityException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, IOException
public boolean hasTagCompression()
public boolean hasValueCompression()
public Dictionary getDictionary(Enum dictIndex)
public CompressionContext.ValueCompressor getValueCompressor()
void clear()
public static Compression.Algorithm getValueCompressionAlgorithm(org.apache.hadoop.conf.Configuration conf)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.