org.apache.hadoop.hbase.client
Class UnmodifyableHTableDescriptor

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

public class UnmodifyableHTableDescriptor
extends HTableDescriptor

Read-only table descriptor.


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.HTableDescriptor
DEFAULT_IN_MEMORY, DEFAULT_MAX_FILESIZE, DEFAULT_MEMCACHE_FLUSH_SIZE, DEFAULT_READONLY, FAMILIES, FAMILIES_KEY, IS_META, IS_META_KEY, IS_ROOT, IS_ROOT_KEY, MAX_FILESIZE, MAX_FILESIZE_KEY, MEMCACHE_FLUSHSIZE, MEMCACHE_FLUSHSIZE_KEY, META_TABLEDESC, READONLY, READONLY_KEY, ROOT_TABLEDESC, TABLE_DESCRIPTOR_VERSION, values
 
Constructor Summary
UnmodifyableHTableDescriptor()
          Default constructor
 
Method Summary
 void addFamily(HColumnDescriptor family)
          Does NOT add a column family.
 void addIndex(IndexSpecification index)
           
 HColumnDescriptor removeFamily(byte[] column)
           
 void setInMemory(boolean inMemory)
           
 void setMaxFileSize(long maxFileSize)
           
 void setMemcacheFlushSize(int memcacheFlushSize)
           
 void setReadOnly(boolean readOnly)
           
 void setValue(byte[] key, byte[] value)
           
 void setValue(String key, String value)
           
 
Methods inherited from class org.apache.hadoop.hbase.HTableDescriptor
compareTo, equals, getFamilies, getFamily, getIndex, getIndexes, getMaxFileSize, getMemcacheFlushSize, getName, getNameAsString, getTableDir, getValue, getValue, getValues, hasFamily, hasFamily, hashCode, isInMemory, isLegalTableName, isMetaRegion, isMetaTable, isReadOnly, isRootRegion, readFields, removeIndex, setMetaRegion, setRootRegion, toString, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnmodifyableHTableDescriptor

public UnmodifyableHTableDescriptor()
Default constructor

Method Detail

addFamily

public void addFamily(HColumnDescriptor family)
Does NOT add a column family. This object is immutable

Overrides:
addFamily in class HTableDescriptor
Parameters:
family - HColumnDescriptor of familyto add.

removeFamily

public HColumnDescriptor removeFamily(byte[] column)
Overrides:
removeFamily in class HTableDescriptor
Parameters:
column -
Returns:
Column descriptor for the passed family name or the family on passed in column.

setInMemory

public void setInMemory(boolean inMemory)
Overrides:
setInMemory in class HTableDescriptor
Parameters:
inMemory - True if all of the columns in the table should be kept in the HRegionServer cache only.

setReadOnly

public void setReadOnly(boolean readOnly)
Overrides:
setReadOnly in class HTableDescriptor
Parameters:
readOnly - True if all of the columns in the table should be read only.

setValue

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

setValue

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

setMaxFileSize

public void setMaxFileSize(long maxFileSize)
Overrides:
setMaxFileSize in class HTableDescriptor
Parameters:
maxFileSize - The maximum file size that a store file can grow to before a split is triggered.

setMemcacheFlushSize

public void setMemcacheFlushSize(int memcacheFlushSize)
Overrides:
setMemcacheFlushSize in class HTableDescriptor
Parameters:
memcacheFlushSize - memory cache flush size for each hregion

addIndex

public void addIndex(IndexSpecification index)
Overrides:
addIndex in class HTableDescriptor


Copyright © 2008 The Apache Software Foundation