@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 |
| Modifier and Type | Field and Description |
|---|---|
static String |
ENABLE_WAL_TAGS_COMPRESSION |
static String |
ENABLE_WAL_VALUE_COMPRESSION |
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 |
|---|---|
Dictionary |
getDictionary(Enum dictIndex) |
static Compression.Algorithm |
getValueCompressionAlgorithm(org.apache.hadoop.conf.Configuration conf) |
org.apache.hadoop.hbase.regionserver.wal.CompressionContext.ValueCompressor |
getValueCompressor() |
boolean |
hasTagCompression() |
boolean |
hasValueCompression() |
public static final String ENABLE_WAL_TAGS_COMPRESSION
public static final String ENABLE_WAL_VALUE_COMPRESSION
public static final String WAL_VALUE_COMPRESSION_TYPE
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 org.apache.hadoop.hbase.regionserver.wal.CompressionContext.ValueCompressor getValueCompressor()
public static Compression.Algorithm getValueCompressionAlgorithm(org.apache.hadoop.conf.Configuration conf)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.