@InterfaceAudience.Public @InterfaceStability.Evolving public class UnmodifyableHTableDescriptor extends HTableDescriptor
COMPACTION_ENABLED, DEFAULT_COMPACTION_ENABLED, DEFAULT_MEMSTORE_FLUSH_SIZE, DEFAULT_READONLY, DEFERRED_LOG_FLUSH, DURABILITY, IS_META, IS_ROOT, MAX_FILESIZE, MEMSTORE_FLUSHSIZE, META_TABLEDESC, NAMESPACE_COL_DESC_BYTES, NAMESPACE_FAMILY_INFO, NAMESPACE_FAMILY_INFO_BYTES, NAMESPACE_TABLEDESC, OWNER, OWNER_KEY, READONLY, SPLIT_POLICY| Constructor and Description |
|---|
UnmodifyableHTableDescriptor()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFamily(HColumnDescriptor family)
Does NOT add a column family.
|
HColumnDescriptor |
removeFamily(byte[] column)
Removes the HColumnDescriptor with name specified by the parameter column
from the table descriptor
|
void |
setMaxFileSize(long maxFileSize)
Sets the maximum size upto which a region can grow to after which a region
split is triggered.
|
void |
setMemStoreFlushSize(long memstoreFlushSize)
Represents the maximum size of the memstore after which the contents of the
memstore are flushed to the filesystem.
|
void |
setReadOnly(boolean readOnly)
Setting the table as read only sets all the columns in the table as read
only.
|
void |
setValue(byte[] key,
byte[] value)
Setter for storing metadata as a (key, value) pair in
HTableDescriptor.values map |
void |
setValue(String key,
String value)
Setter for storing metadata as a (key, value) pair in
HTableDescriptor.values map |
addCoprocessor, addCoprocessor, compareTo, convert, convert, equals, getColumnFamilies, getConfiguration, getConfigurationValue, getCoprocessors, getDurability, getFamilies, getFamiliesKeys, getFamily, getMaxFileSize, getMemStoreFlushSize, getName, getNameAsString, getOwnerString, getRegionSplitPolicyClassName, getTableDir, getTableName, getValue, getValue, getValues, hasCoprocessor, hasFamily, hashCode, isCompactionEnabled, isDeferredLogFlush, isMetaRegion, isMetaTable, isReadOnly, isRootRegion, parseFrom, readFields, remove, remove, remove, removeConfiguration, removeCoprocessor, setCompactionEnabled, setConfiguration, setDeferredLogFlush, setDurability, setMetaRegion, setName, setName, setOwner, setOwnerString, setRootRegion, setValue, toByteArray, toString, toStringCustomizedValues, writepublic UnmodifyableHTableDescriptor()
public void addFamily(HColumnDescriptor family)
addFamily in class HTableDescriptorfamily - HColumnDescriptor of familyto add.public HColumnDescriptor removeFamily(byte[] column)
HTableDescriptorremoveFamily in class HTableDescriptorcolumn - public void setReadOnly(boolean readOnly)
HTableDescriptorsetReadOnly in class HTableDescriptorreadOnly - True if all of the columns in the table should be read
only.HTableDescriptor.setReadOnly(boolean)public void setValue(byte[] key,
byte[] value)
HTableDescriptorHTableDescriptor.values mapsetValue in class HTableDescriptorkey - The key.value - The value.HTableDescriptor.setValue(byte[], byte[])public void setValue(String key, String value)
HTableDescriptorHTableDescriptor.values mapsetValue in class HTableDescriptorkey - The key.value - The value.HTableDescriptor.setValue(java.lang.String, java.lang.String)public void setMaxFileSize(long maxFileSize)
HTableDescriptorThis is not an absolute value and might vary. Assume that a single row exceeds the maxFileSize then the storeFileSize will be greater than maxFileSize since a single row cannot be split across multiple regions
setMaxFileSize in class HTableDescriptormaxFileSize - The maximum file size that a store file can grow to
before a split is triggered.HTableDescriptor.setMaxFileSize(long)public void setMemStoreFlushSize(long memstoreFlushSize)
HTableDescriptorsetMemStoreFlushSize in class HTableDescriptormemstoreFlushSize - memory cache flush size for each hregionHTableDescriptor.setMemStoreFlushSize(long)Copyright © 2014 The Apache Software Foundation. All rights reserved.