public class UnmodifyableHColumnDescriptor extends HColumnDescriptor
BLOCKCACHE, BLOCKSIZE, BLOOMFILTER, CACHE_BLOOMS_ON_WRITE, CACHE_DATA_ON_WRITE, CACHE_INDEX_ON_WRITE, COMPRESSION, COMPRESSION_COMPACT, DATA_BLOCK_ENCODING, DEFAULT_BLOCKCACHE, DEFAULT_BLOCKSIZE, DEFAULT_BLOOMFILTER, DEFAULT_CACHE_BLOOMS_ON_WRITE, DEFAULT_CACHE_DATA_ON_WRITE, DEFAULT_CACHE_INDEX_ON_WRITE, DEFAULT_COMPRESSION, DEFAULT_DATA_BLOCK_ENCODING, DEFAULT_ENCODE_ON_DISK, DEFAULT_EVICT_BLOCKS_ON_CLOSE, DEFAULT_IN_MEMORY, DEFAULT_KEEP_DELETED, DEFAULT_MIN_VERSIONS, DEFAULT_REPLICATION_SCOPE, DEFAULT_TTL, DEFAULT_VERSIONS, ENCODE_ON_DISK, EVICT_BLOCKS_ON_CLOSE, FOREVER, KEEP_DELETED_CELLS, LENGTH, MIN_VERSIONS, REPLICATION_SCOPE, TTL, values
Constructor and Description |
---|
UnmodifyableHColumnDescriptor(HColumnDescriptor desc) |
Modifier and Type | Method and Description |
---|---|
HColumnDescriptor |
setBlockCacheEnabled(boolean blockCacheEnabled) |
HColumnDescriptor |
setCompressionType(Compression.Algorithm type)
Compression types supported in hbase.
|
HColumnDescriptor |
setInMemory(boolean inMemory) |
HColumnDescriptor |
setMaxVersions(int maxVersions) |
HColumnDescriptor |
setTimeToLive(int timeToLive) |
HColumnDescriptor |
setValue(byte[] key,
byte[] value) |
HColumnDescriptor |
setValue(String key,
String value) |
compareTo, equals, getBlocksize, getBloomFilterType, getCompactionCompression, getCompactionCompressionType, getCompression, getCompressionType, getDataBlockEncoding, getDataBlockEncodingOnDisk, getDefaultValues, getKeepDeletedCells, getMaxVersions, getMinVersions, getName, getNameAsString, getScope, getTimeToLive, getValue, getValue, getValues, hashCode, isBlockCacheEnabled, isInMemory, isLegalFamilyName, readFields, remove, setBlocksize, setBloomFilterType, setCacheBloomsOnWrite, setCacheDataOnWrite, setCacheIndexesOnWrite, setCompactionCompressionType, setDataBlockEncoding, setEncodeOnDisk, setEvictBlocksOnClose, setKeepDeletedCells, setMinVersions, setScope, shouldCacheBloomsOnWrite, shouldCacheDataOnWrite, shouldCacheIndexesOnWrite, shouldEvictBlocksOnClose, toString, toStringCustomizedValues, write
public UnmodifyableHColumnDescriptor(HColumnDescriptor desc)
desc
- wrappedpublic HColumnDescriptor setValue(byte[] key, byte[] value)
setValue
in class HColumnDescriptor
key
- The key.value
- The value.HColumnDescriptor.setValue(byte[], byte[])
public HColumnDescriptor setValue(String key, String value)
setValue
in class HColumnDescriptor
key
- The key.value
- The value.HColumnDescriptor.setValue(java.lang.String, java.lang.String)
public HColumnDescriptor setMaxVersions(int maxVersions)
setMaxVersions
in class HColumnDescriptor
maxVersions
- maximum number of versionsHColumnDescriptor.setMaxVersions(int)
public HColumnDescriptor setInMemory(boolean inMemory)
setInMemory
in class HColumnDescriptor
inMemory
- True if we are to keep all values in the HRegionServer
cacheHColumnDescriptor.setInMemory(boolean)
public HColumnDescriptor setBlockCacheEnabled(boolean blockCacheEnabled)
setBlockCacheEnabled
in class HColumnDescriptor
blockCacheEnabled
- True if MapFile blocks should be cached.HColumnDescriptor.setBlockCacheEnabled(boolean)
public HColumnDescriptor setTimeToLive(int timeToLive)
setTimeToLive
in class HColumnDescriptor
timeToLive
- Time-to-live of cell contents, in seconds.HColumnDescriptor.setTimeToLive(int)
public HColumnDescriptor setCompressionType(Compression.Algorithm type)
HColumnDescriptor
setCompressionType
in class HColumnDescriptor
type
- Compression type setting.HColumnDescriptor.setCompressionType(org.apache.hadoop.hbase.io.hfile.Compression.Algorithm)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.