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_DEFERRED_LOG_FLUSH, DEFAULT_MAX_FILESIZE, DEFAULT_MEMSTORE_FLUSH_SIZE, DEFAULT_READONLY, DEFERRED_LOG_FLUSH, DEFERRED_LOG_FLUSH_KEY, families, FAMILIES, FAMILIES_KEY, IS_META, IS_META_KEY, IS_ROOT, IS_ROOT_KEY, MAX_FILESIZE, MAX_FILESIZE_KEY, MEMSTORE_FLUSHSIZE, MEMSTORE_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.
 HColumnDescriptor removeFamily(byte[] column)
           
 void setMaxFileSize(long maxFileSize)
           
 void setMemStoreFlushSize(long memstoreFlushSize)
           
 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, getColumnFamilies, getFamilies, getFamiliesKeys, getFamily, getMaxFileSize, getMemStoreFlushSize, getName, getNameAsString, getTableDir, getValue, getValue, getValues, hasFamily, hashCode, isDeferredLogFlush, isLegalTableName, isMetaRegion, isMetaTable, isMetaTable, isReadOnly, isRootRegion, readFields, remove, setDeferredLogFlush, setMetaRegion, setName, 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.

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.
See Also:
HTableDescriptor.setReadOnly(boolean)

setValue

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

setValue

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

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.
See Also:
HTableDescriptor.setMaxFileSize(long)

setMemStoreFlushSize

public void setMemStoreFlushSize(long memstoreFlushSize)
Overrides:
setMemStoreFlushSize in class HTableDescriptor
Parameters:
memstoreFlushSize - memory cache flush size for each hregion
See Also:
HTableDescriptor.setMemStoreFlushSize(long)


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