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, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable

public class UnmodifyableHColumnDescriptor
extends 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, BLOOMFILTER, COMPRESSION, DEFAULT_BLOCKCACHE, DEFAULT_BLOOMFILTER, DEFAULT_COMPRESSION, DEFAULT_IN_MEMORY, DEFAULT_LENGTH, DEFAULT_MAPFILE_INDEX_INTERVAL, DEFAULT_TTL, DEFAULT_VERSIONS, FOREVER, LENGTH, MAPFILE_INDEX_INTERVAL, TTL, values
 
Constructor Summary
UnmodifyableHColumnDescriptor(HColumnDescriptor desc)
           
 
Method Summary
 void setBlockCacheEnabled(boolean blockCacheEnabled)
           
 void setCompressionType(HColumnDescriptor.CompressionType type)
           
 void setInMemory(boolean inMemory)
           
 void setMapFileIndexInterval(int interval)
           
 void setMaxValueLength(int maxLength)
           
 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, getCompression, getCompressionType, getMapFileIndexInterval, getMaxValueLength, getMaxVersions, getName, getNameAsString, getNameWithColon, getTimeToLive, getValue, getValue, getValues, hashCode, isBlockCacheEnabled, isBloomfilter, isInMemory, isLegalFamilyName, readFields, setBloomfilter, toString, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnmodifyableHColumnDescriptor

public UnmodifyableHColumnDescriptor(HColumnDescriptor desc)
Method Detail

setValue

public void setValue(byte[] key,
                     byte[] value)
Overrides:
setValue in class HColumnDescriptor
Parameters:
key - The key.
value - The value.

setValue

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

setMaxVersions

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

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

setBlockCacheEnabled

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

setMaxValueLength

public void setMaxValueLength(int maxLength)
Overrides:
setMaxValueLength in class HColumnDescriptor
Parameters:
maxLength - Maximum value length.

setTimeToLive

public void setTimeToLive(int timeToLive)
Overrides:
setTimeToLive in class HColumnDescriptor

setCompressionType

public void setCompressionType(HColumnDescriptor.CompressionType type)
Overrides:
setCompressionType in class HColumnDescriptor
Parameters:
type - Compression type setting.

setMapFileIndexInterval

public void setMapFileIndexInterval(int interval)
Overrides:
setMapFileIndexInterval in class HColumnDescriptor
Parameters:
interval - The number of entries that are added to the store MapFile before an index entry is added.


Copyright © 2008 The Apache Software Foundation