|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.HTableDescriptor
org.apache.hadoop.hbase.client.UnmodifyableHTableDescriptor
@InterfaceAudience.Public @InterfaceStability.Evolving public class UnmodifyableHTableDescriptor
Read-only table descriptor.
| Field Summary |
|---|
| Fields inherited from class org.apache.hadoop.hbase.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, ROOT_TABLEDESC, SPLIT_POLICY |
| Constructor Summary | |
|---|---|
UnmodifyableHTableDescriptor()
Default constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UnmodifyableHTableDescriptor()
| Method Detail |
|---|
public void addFamily(HColumnDescriptor family)
addFamily in class HTableDescriptorfamily - HColumnDescriptor of familyto add.public HColumnDescriptor removeFamily(byte[] column)
HTableDescriptor
removeFamily in class HTableDescriptorcolumn -
public void setReadOnly(boolean readOnly)
HTableDescriptor
setReadOnly 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 map
setValue in class HTableDescriptorkey - The key.value - The value.HTableDescriptor.setValue(byte[], byte[])
public void setValue(String key,
String value)
HTableDescriptorHTableDescriptor.values map
setValue 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)
HTableDescriptor
setMemStoreFlushSize in class HTableDescriptormemstoreFlushSize - memory cache flush size for each hregionHTableDescriptor.setMemStoreFlushSize(long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||