org.apache.hadoop.hbase.client
Class UnmodifyableHColumnDescriptor

java.lang.Object
  extended by org.apache.hadoop.hbase.HColumnDescriptor
      extended by org.apache.hadoop.hbase.client.UnmodifyableHColumnDescriptor
All Implemented Interfaces:
Comparable<HColumnDescriptor>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<HColumnDescriptor>

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class UnmodifyableHColumnDescriptor
extends HColumnDescriptor

Immutable HColumnDescriptor


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.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
 
Constructor Summary
UnmodifyableHColumnDescriptor(HColumnDescriptor desc)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.apache.hadoop.hbase.HColumnDescriptor
compareTo, convert, convert, equals, getBlocksize, getBloomFilterType, getCompactionCompression, getCompactionCompressionType, getCompression, getCompressionType, getConfiguration, getConfigurationValue, getDataBlockEncoding, getDataBlockEncodingOnDisk, getDefaultValues, getKeepDeletedCells, getMaxVersions, getMinVersions, getName, getNameAsString, getScope, getTimeToLive, getValue, getValue, getValues, hashCode, isBlockCacheEnabled, isInMemory, isLegalFamilyName, parseFrom, readFields, remove, removeConfiguration, setBlocksize, setBloomFilterType, setCacheBloomsOnWrite, setCacheDataOnWrite, setCacheIndexesOnWrite, setCompactionCompressionType, setConfiguration, setDataBlockEncoding, setEncodeOnDisk, setEvictBlocksOnClose, setKeepDeletedCells, setMinVersions, setScope, shouldCacheBloomsOnWrite, shouldCacheDataOnWrite, shouldCacheIndexesOnWrite, shouldEvictBlocksOnClose, toByteArray, toString, toStringCustomizedValues, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnmodifyableHColumnDescriptor

public UnmodifyableHColumnDescriptor(HColumnDescriptor desc)
Parameters:
desc - wrapped
Method Detail

setValue

public HColumnDescriptor setValue(byte[] key,
                                  byte[] value)
Overrides:
setValue in class HColumnDescriptor
Parameters:
key - The key.
value - The value.
Returns:
this (for chained invocation)
See Also:
HColumnDescriptor.setValue(byte[], byte[])

setValue

public HColumnDescriptor setValue(String key,
                                  String value)
Overrides:
setValue in class HColumnDescriptor
Parameters:
key - The key.
value - The value.
Returns:
this (for chained invocation)
See Also:
HColumnDescriptor.setValue(java.lang.String, java.lang.String)

setMaxVersions

public HColumnDescriptor setMaxVersions(int maxVersions)
Overrides:
setMaxVersions in class HColumnDescriptor
Parameters:
maxVersions - maximum number of versions
Returns:
this (for chained invocation)
See Also:
HColumnDescriptor.setMaxVersions(int)

setInMemory

public HColumnDescriptor setInMemory(boolean inMemory)
Overrides:
setInMemory in class HColumnDescriptor
Parameters:
inMemory - True if we are to keep all values in the HRegionServer cache
Returns:
this (for chained invocation)
See Also:
HColumnDescriptor.setInMemory(boolean)

setBlockCacheEnabled

public HColumnDescriptor setBlockCacheEnabled(boolean blockCacheEnabled)
Overrides:
setBlockCacheEnabled in class HColumnDescriptor
Parameters:
blockCacheEnabled - True if MapFile blocks should be cached.
Returns:
this (for chained invocation)
See Also:
HColumnDescriptor.setBlockCacheEnabled(boolean)

setTimeToLive

public HColumnDescriptor setTimeToLive(int timeToLive)
Overrides:
setTimeToLive in class HColumnDescriptor
Parameters:
timeToLive - Time-to-live of cell contents, in seconds.
Returns:
this (for chained invocation)
See Also:
HColumnDescriptor.setTimeToLive(int)

setCompressionType

public HColumnDescriptor setCompressionType(Compression.Algorithm type)
Description copied from class: HColumnDescriptor
Compression types supported in hbase. LZO is not bundled as part of the hbase distribution. See LZO Compression for how to enable it.

Overrides:
setCompressionType in class HColumnDescriptor
Parameters:
type - Compression type setting.
Returns:
this (for chained invocation)
See Also:
HColumnDescriptor.setCompressionType(org.apache.hadoop.hbase.io.compress.Compression.Algorithm)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.