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>

public class UnmodifyableHColumnDescriptor
extends HColumnDescriptor

Immutable HColumnDescriptor


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.HColumnDescriptor
HColumnDescriptor.CompressionType
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.HColumnDescriptor
BLOCKCACHE, BLOCKSIZE, BLOOMFILTER, COMPRESSION, COMPRESSION_COMPACT, DEFAULT_BLOCKCACHE, DEFAULT_BLOCKSIZE, DEFAULT_BLOOMFILTER, DEFAULT_COMPRESSION, DEFAULT_IN_MEMORY, DEFAULT_REPLICATION_SCOPE, DEFAULT_TTL, DEFAULT_VERSIONS, FOREVER, LENGTH, REPLICATION_SCOPE, TTL, values
 
Constructor Summary
UnmodifyableHColumnDescriptor(HColumnDescriptor desc)
           
 
Method Summary
 void setBlockCacheEnabled(boolean blockCacheEnabled)
           
 void setCompressionType(Compression.Algorithm type)
          Compression types supported in hbase.
 void setInMemory(boolean inMemory)
           
 void setMaxVersions(int maxVersions)
           
 void setTimeToLive(int timeToLive)
           
 void setValue(byte[] key, byte[] value)
           
 void setValue(String key, String value)
           
 
Methods inherited from class org.apache.hadoop.hbase.HColumnDescriptor
compareTo, equals, getBlocksize, getBloomFilterType, getCompactionCompression, getCompactionCompressionType, getCompression, getCompressionType, getMaxVersions, getName, getNameAsString, getScope, getTimeToLive, getValue, getValue, getValues, hashCode, isBlockCacheEnabled, isInMemory, isLegalFamilyName, readFields, remove, setBlocksize, setBloomFilterType, setCompactionCompressionType, setScope, toString, 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 void setValue(byte[] key,
                     byte[] value)
Overrides:
setValue in class HColumnDescriptor
Parameters:
key - The key.
value - The value.
See Also:
HColumnDescriptor.setValue(byte[], byte[])

setValue

public void setValue(String key,
                     String value)
Overrides:
setValue in class HColumnDescriptor
Parameters:
key - The key.
value - The value.
See Also:
HColumnDescriptor.setValue(java.lang.String, java.lang.String)

setMaxVersions

public void setMaxVersions(int maxVersions)
Overrides:
setMaxVersions in class HColumnDescriptor
Parameters:
maxVersions - maximum number of versions
See Also:
HColumnDescriptor.setMaxVersions(int)

setInMemory

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

setBlockCacheEnabled

public void setBlockCacheEnabled(boolean blockCacheEnabled)
Overrides:
setBlockCacheEnabled in class HColumnDescriptor
Parameters:
blockCacheEnabled - True if MapFile blocks should be cached.
See Also:
HColumnDescriptor.setBlockCacheEnabled(boolean)

setTimeToLive

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

setCompressionType

public void 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.
See Also:
HColumnDescriptor.setCompressionType(org.apache.hadoop.hbase.io.hfile.Compression.Algorithm)


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