@InterfaceAudience.Public @InterfaceStability.Evolving public class UnmodifyableHTableDescriptor extends HTableDescriptor
COMPACTION_ENABLED, DEFAULT_COMPACTION_ENABLED, DEFAULT_MEMSTORE_FLUSH_SIZE, DEFAULT_NORMALIZATION_ENABLED, DEFAULT_READONLY, DEFAULT_REGION_MEMSTORE_REPLICATION, DEFAULT_REGION_REPLICATION, DEFERRED_LOG_FLUSH, DURABILITY, FLUSH_POLICY, IS_META, IS_ROOT, MAX_FILESIZE, MEMSTORE_FLUSHSIZE, META_TABLEDESC, NAMESPACE_COL_DESC_BYTES, NAMESPACE_FAMILY_INFO, NAMESPACE_FAMILY_INFO_BYTES, NAMESPACE_TABLEDESC, NORMALIZATION_ENABLED, OWNER, OWNER_KEY, READONLY, REGION_MEMSTORE_REPLICATION, REGION_REPLICATION, SPLIT_POLICY
Constructor and Description |
---|
UnmodifyableHTableDescriptor()
Default constructor
|
UnmodifyableHTableDescriptor(HTableDescriptor desc) |
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
addFamily(HColumnDescriptor family)
Does NOT add a column family.
|
private static HColumnDescriptor[] |
getUnmodifyableFamilies(HTableDescriptor desc) |
HTableDescriptor |
modifyFamily(HColumnDescriptor family)
Modifies the existing column family.
|
HColumnDescriptor |
removeFamily(byte[] column)
Removes the HColumnDescriptor with name specified by the parameter column
from the table descriptor
|
HTableDescriptor |
setMaxFileSize(long maxFileSize)
Sets the maximum size upto which a region can grow to after which a region
split is triggered.
|
HTableDescriptor |
setMemStoreFlushSize(long memstoreFlushSize)
Represents the maximum size of the memstore after which the contents of the
memstore are flushed to the filesystem.
|
HTableDescriptor |
setReadOnly(boolean readOnly)
Setting the table as read only sets all the columns in the table as read
only.
|
HTableDescriptor |
setValue(byte[] key,
byte[] value)
Setter for storing metadata as a (key, value) pair in
HTableDescriptor.values map |
HTableDescriptor |
setValue(String key,
String value)
Setter for storing metadata as a (key, value) pair in
HTableDescriptor.values map |
addCoprocessor, addCoprocessor, addCoprocessorWithSpec, compareTo, convert, convert, equals, getColumnFamilies, getConfiguration, getConfigurationValue, getCoprocessors, getDurability, getFamilies, getFamiliesKeys, getFamily, getFlushPolicyClassName, getMaxFileSize, getMemStoreFlushSize, getName, getNameAsString, getOwnerString, getRegionReplication, getRegionSplitPolicyClassName, getTableDir, getTableName, getValue, getValue, getValues, hasCoprocessor, hasFamily, hashCode, hasRegionMemstoreReplication, isCompactionEnabled, isMetaRegion, isMetaTable, isNormalizationEnabled, isReadOnly, isRootRegion, metaTableDescriptor, parseFrom, readFields, remove, remove, remove, removeConfiguration, removeCoprocessor, setCompactionEnabled, setConfiguration, setDurability, setFlushPolicyClassName, setMetaRegion, setName, setName, setNormalizationEnabled, setOwner, setOwnerString, setRegionMemstoreReplication, setRegionReplication, setRegionSplitPolicyClassName, setRootRegion, setValue, toByteArray, toString, toStringCustomizedValues, toStringTableAttributes, write
public UnmodifyableHTableDescriptor()
UnmodifyableHTableDescriptor(HTableDescriptor desc)
private static HColumnDescriptor[] getUnmodifyableFamilies(HTableDescriptor desc)
public HTableDescriptor addFamily(HColumnDescriptor family)
addFamily
in class HTableDescriptor
family
- HColumnDescriptor of familyto add.public HTableDescriptor modifyFamily(HColumnDescriptor family)
HTableDescriptor
modifyFamily
in class HTableDescriptor
family
- HColumnDescriptor of family to updatepublic HColumnDescriptor removeFamily(byte[] column)
HTableDescriptor
removeFamily
in class HTableDescriptor
column
- public HTableDescriptor setReadOnly(boolean readOnly)
HTableDescriptor
setReadOnly
in class HTableDescriptor
readOnly
- True if all of the columns in the table should be read
only.HTableDescriptor.setReadOnly(boolean)
public HTableDescriptor setValue(byte[] key, byte[] value)
HTableDescriptor
HTableDescriptor.values
mapsetValue
in class HTableDescriptor
key
- The key.value
- The value.HTableDescriptor.setValue(byte[], byte[])
public HTableDescriptor setValue(String key, String value)
HTableDescriptor
HTableDescriptor.values
mapsetValue
in class HTableDescriptor
key
- The key.value
- The value.HTableDescriptor.setValue(java.lang.String, java.lang.String)
public HTableDescriptor setMaxFileSize(long maxFileSize)
HTableDescriptor
This 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 HTableDescriptor
maxFileSize
- The maximum file size that a store file can grow to
before a split is triggered.HTableDescriptor.setMaxFileSize(long)
public HTableDescriptor setMemStoreFlushSize(long memstoreFlushSize)
HTableDescriptor
setMemStoreFlushSize
in class HTableDescriptor
memstoreFlushSize
- memory cache flush size for each hregionHTableDescriptor.setMemStoreFlushSize(long)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.