org.apache.hadoop.hbase.client
Class UnmodifyableHTableDescriptor
java.lang.Object
org.apache.hadoop.hbase.HTableDescriptor
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.
| Fields inherited from class org.apache.hadoop.hbase.HTableDescriptor |
DEFAULT_IN_MEMORY, 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 |
| Methods inherited from class org.apache.hadoop.hbase.HTableDescriptor |
compareTo, equals, getFamilies, getFamily, getMaxFileSize, getMemcacheFlushSize, getName, getNameAsString, getTableDir, getValue, getValue, getValues, hasFamily, hasFamily, hashCode, isInMemory, isLegalTableName, isMetaRegion, isMetaTable, isReadOnly, isRootRegion, readFields, setMetaRegion, setRootRegion, toString, write |
UnmodifyableHTableDescriptor
public UnmodifyableHTableDescriptor()
- Default constructor
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
Copyright © 2008 The Apache Software Foundation