public class UnmodifyableHTableDescriptor extends HTableDescriptor
DEFAULT_MEMSTORE_FLUSH_SIZE, DEFAULT_READONLY, DEFERRED_LOG_FLUSH, IS_META, IS_ROOT, MAX_FILESIZE, MEMSTORE_FLUSHSIZE, META_TABLEDESC, OWNER, OWNER_KEY, READONLY, ROOT_TABLEDESC, SPLIT_POLICY, VALID_USER_TABLE_REGEX, values
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, equals, getColumnFamilies, getCoprocessors, getDefaultValues, getFamilies, getFamiliesKeys, getFamily, getMaxFileSize, getMemStoreFlushSize, getName, getNameAsString, getOwnerString, getRegionSplitPolicyClassName, getTableDir, getValue, getValue, getValues, hasCoprocessor, hasFamily, hashCode, isDeferredLogFlush, isLegalTableName, isLegalTableName, isMetaRegion, isMetaTable, isMetaTable, isReadOnly, isRootRegion, readFields, remove, remove, removeCoprocessor, setDeferredLogFlush, setMetaRegion, setName, setOwner, setOwnerString, setRootRegion, setValue, toString, toStringCustomizedValues, write
public UnmodifyableHTableDescriptor()
public void addFamily(HColumnDescriptor family)
addFamily
in class HTableDescriptor
family
- HColumnDescriptor of familyto add.public HColumnDescriptor removeFamily(byte[] column)
HTableDescriptor
removeFamily
in class HTableDescriptor
column
- public void 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 void setValue(byte[] key, byte[] value)
HTableDescriptor
HTableDescriptor.values
mapsetValue
in class HTableDescriptor
key
- The key.value
- The value.HTableDescriptor.setValue(byte[], byte[])
public void 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 void 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 void setMemStoreFlushSize(long memstoreFlushSize)
HTableDescriptor
setMemStoreFlushSize
in class HTableDescriptor
memstoreFlushSize
- memory cache flush size for each hregionHTableDescriptor.setMemStoreFlushSize(long)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.