@InterfaceAudience.Private public static class TableDescriptorBuilder.ModifyableTableDescriptor extends Object implements TableDescriptor, Comparable<TableDescriptorBuilder.ModifyableTableDescriptor>
COMPARATOR, COMPARATOR_IGNORE_REPLICATION| 构造器和说明 |
|---|
ModifyableTableDescriptor(TableName name)
Construct a table descriptor specifying a TableName object
|
ModifyableTableDescriptor(TableName name,
TableDescriptor desc)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(TableDescriptorBuilder.ModifyableTableDescriptor other)
Compares the descriptor with another descriptor which is passed as a
parameter.
|
boolean |
equals(Object obj)
Compare the contents of the descriptor with another one passed as a
parameter.
|
ColumnFamilyDescriptor[] |
getColumnFamilies()
Returns an unmodifiable collection of all the
ColumnFamilyDescriptor of
all the column families of the table. |
ColumnFamilyDescriptor |
getColumnFamily(byte[] column)
Returns the ColumnFamilyDescriptor for a specific column family with name as
specified by the parameter column.
|
int |
getColumnFamilyCount()
Returns the count of the column families of the table.
|
Set<byte[]> |
getColumnFamilyNames()
Returns all the column family names of the current table.
|
List<CoprocessorDescriptor> |
getCoprocessorDescriptors()
Return the list of attached co-processor represented by their name
className
|
Durability |
getDurability()
Returns the durability setting for the table.
|
String |
getFlushPolicyClassName()
This gets the class associated with the flush policy which determines the
stores need to be flushed when flushing a region.
|
long |
getMaxFileSize()
Returns the maximum size upto which a region can grow to after which a
region split is triggered.
|
long |
getMemStoreFlushSize()
Returns the size of the memstore after which a flush to filesystem is
triggered.
|
String |
getOwnerString()
已过时。
|
int |
getPriority() |
int |
getRegionReplication()
Returns the configured replicas per region
|
String |
getRegionSplitPolicyClassName()
This gets the class associated with the region split policy which
determines when a region split should occur.
|
TableName |
getTableName()
Get the name of the table
|
byte[] |
getValue(byte[] key)
Getter for accessing the metadata associated with the key.
|
Bytes |
getValue(Bytes key)
Getter for accessing the metadata associated with the key.
|
String |
getValue(String key)
Getter for accessing the metadata associated with the key.
|
Map<Bytes,Bytes> |
getValues()
Getter for fetching an unmodifiable
values map. |
boolean |
hasColumnFamily(byte[] familyName)
Checks to see if this table contains the given column family
|
boolean |
hasCoprocessor(String classNameToMatch)
Check if the table has an attached co-processor represented by the name
className
|
int |
hashCode() |
boolean |
hasRegionMemStoreReplication() |
boolean |
isCompactionEnabled()
Check if the compaction enable flag of the table is true.
|
boolean |
isMetaRegion()
Checks if this table is
hbase:meta region. |
boolean |
isMetaTable()
Checks if the table is a
hbase:meta table |
boolean |
isNormalizationEnabled()
Check if normalization enable flag of the table is true.
|
boolean |
isReadOnly()
Check if the readOnly flag of the table is set.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
modifyColumnFamily(ColumnFamilyDescriptor family)
Modifies the existing column family.
|
ColumnFamilyDescriptor |
removeColumnFamily(byte[] column)
Removes the ColumnFamilyDescriptor with name specified by the parameter column
from the table descriptor
|
void |
removeCoprocessor(String className)
Remove a coprocessor from those set on the table
|
TableDescriptorBuilder.ModifyableTableDescriptor |
removeValue(byte[] key)
Remove metadata represented by the key from the
values map |
TableDescriptorBuilder.ModifyableTableDescriptor |
removeValue(Bytes key)
Remove metadata represented by the key from the
values map |
TableDescriptorBuilder.ModifyableTableDescriptor |
setColumnFamily(ColumnFamilyDescriptor family)
Adds a column family.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setCompactionEnabled(boolean isEnable)
Setting the table compaction enable flag.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setCoprocessor(CoprocessorDescriptor cp)
Add a table coprocessor to this table.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setCoprocessor(String className)
Add a table coprocessor to this table.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setCoprocessorWithSpec(String specStr)
已过时。
used by HTableDescriptor and admin.rb.
As of release 2.0.0, this will be removed in HBase 3.0.0.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setDurability(Durability durability)
Sets the
Durability setting for the table. |
TableDescriptorBuilder.ModifyableTableDescriptor |
setFlushPolicyClassName(String clazz)
This sets the class associated with the flush policy which determines
determines the stores need to be flushed when flushing a region.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setMaxFileSize(long maxFileSize)
Sets the maximum size upto which a region can grow to after which a
region split is triggered.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setMemStoreFlushSize(long memstoreFlushSize)
Represents the maximum size of the memstore after which the contents of
the memstore are flushed to the filesystem.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setNormalizationEnabled(boolean isEnable)
Setting the table normalization enable flag.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setOwner(User owner)
已过时。
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setOwnerString(String ownerString)
已过时。
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setPriority(int priority) |
TableDescriptorBuilder.ModifyableTableDescriptor |
setReadOnly(boolean readOnly)
Setting the table as read only sets all the columns in the table as read
only.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setRegionMemStoreReplication(boolean memstoreReplication)
Enable or Disable the memstore replication from the primary region to the
replicas.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setRegionReplication(int regionReplication)
Sets the number of replicas per region.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setRegionSplitPolicyClassName(String clazz)
This sets the class associated with the region split policy which
determines when a region split should occur.
|
TableDescriptorBuilder.ModifyableTableDescriptor |
setValue(byte[] key,
byte[] value)
Setter for storing metadata as a (key, value) pair in
values map |
TableDescriptorBuilder.ModifyableTableDescriptor |
setValue(Bytes key,
Bytes value) |
TableDescriptorBuilder.ModifyableTableDescriptor |
setValue(String key,
String value) |
String |
toString() |
String |
toStringCustomizedValues() |
String |
toStringTableAttributes() |
getComparator, getCoprocessors, hasGlobalReplicationScope, matchReplicationScope@InterfaceAudience.Private public ModifyableTableDescriptor(TableName name)
name - Table name.
TODO: make this private after removing the HTableDescriptor@InterfaceAudience.Private @Deprecated public ModifyableTableDescriptor(TableName name, TableDescriptor desc)
Makes a deep copy of the supplied descriptor.
name - The new namedesc - The descriptor.
TODO: make this private after removing the HTableDescriptorpublic boolean isMetaRegion()
hbase:meta region.isMetaRegion 在接口中 TableDescriptor hbase:meta regionpublic boolean isMetaTable()
hbase:meta tableisMetaTable 在接口中 TableDescriptor hbase:meta region.public Bytes getValue(Bytes key)
TableDescriptorgetValue 在接口中 TableDescriptorkey - The key.public String getValue(String key)
TableDescriptorgetValue 在接口中 TableDescriptorkey - The key.public byte[] getValue(byte[] key)
TableDescriptorgetValue 在接口中 TableDescriptorkey - The key.public Map<Bytes,Bytes> getValues()
values map.getValues 在接口中 TableDescriptorvalues.valuespublic TableDescriptorBuilder.ModifyableTableDescriptor setValue(byte[] key, byte[] value)
values mapkey - The key.value - The value. If null, removes the setting.valuespublic TableDescriptorBuilder.ModifyableTableDescriptor setValue(String key, String value)
public TableDescriptorBuilder.ModifyableTableDescriptor setValue(Bytes key, Bytes value)
public TableDescriptorBuilder.ModifyableTableDescriptor removeValue(Bytes key)
values mapkey - Key whose key and value we're to remove from TableDescriptor
parameters.public TableDescriptorBuilder.ModifyableTableDescriptor removeValue(byte[] key)
values mapkey - Key whose key and value we're to remove from TableDescriptor
parameters.public boolean isReadOnly()
isReadOnly 在接口中 TableDescriptorpublic TableDescriptorBuilder.ModifyableTableDescriptor setReadOnly(boolean readOnly)
readOnly - True if all of the columns in the table should be read
only.public boolean isCompactionEnabled()
isCompactionEnabled 在接口中 TableDescriptorpublic TableDescriptorBuilder.ModifyableTableDescriptor setCompactionEnabled(boolean isEnable)
isEnable - True if enable compaction.public boolean isNormalizationEnabled()
isNormalizationEnabled 在接口中 TableDescriptorpublic TableDescriptorBuilder.ModifyableTableDescriptor setNormalizationEnabled(boolean isEnable)
isEnable - True if enable normalization.public TableDescriptorBuilder.ModifyableTableDescriptor setDurability(Durability durability)
Durability setting for the table. This defaults to
Durability.USE_DEFAULT.durability - enum valuepublic Durability getDurability()
getDurability 在接口中 TableDescriptorpublic TableName getTableName()
getTableName 在接口中 TableDescriptorpublic TableDescriptorBuilder.ModifyableTableDescriptor setRegionSplitPolicyClassName(String clazz)
clazz - the class namepublic String getRegionSplitPolicyClassName()
getRegionSplitPolicyClassName 在接口中 TableDescriptorpublic long getMaxFileSize()
getMaxFileSize 在接口中 TableDescriptorsetMaxFileSize(long)public TableDescriptorBuilder.ModifyableTableDescriptor setMaxFileSize(long maxFileSize)
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
maxFileSize - The maximum file size that a store file can grow to
before a split is triggered.public long getMemStoreFlushSize()
getMemStoreFlushSize 在接口中 TableDescriptorsetMemStoreFlushSize(long)public TableDescriptorBuilder.ModifyableTableDescriptor setMemStoreFlushSize(long memstoreFlushSize)
memstoreFlushSize - memory cache flush size for each hregionpublic TableDescriptorBuilder.ModifyableTableDescriptor setFlushPolicyClassName(String clazz)
clazz - the class namepublic String getFlushPolicyClassName()
getFlushPolicyClassName 在接口中 TableDescriptorpublic TableDescriptorBuilder.ModifyableTableDescriptor setColumnFamily(ColumnFamilyDescriptor family)
modifyColumnFamily(ColumnFamilyDescriptor) instead.family - to add.public TableDescriptorBuilder.ModifyableTableDescriptor modifyColumnFamily(ColumnFamilyDescriptor family)
family - to updatepublic boolean hasColumnFamily(byte[] familyName)
hasColumnFamily 在接口中 TableDescriptorfamilyName - Family name or column name.public String toString()
public String toStringCustomizedValues()
public String toStringTableAttributes()
public boolean equals(Object obj)
equals 在类中 Objectobj - The object to compareObject.equals(java.lang.Object)public int compareTo(TableDescriptorBuilder.ModifyableTableDescriptor other)
compareTo 在接口中 Comparable<TableDescriptorBuilder.ModifyableTableDescriptor>other - The MTD to comparepublic ColumnFamilyDescriptor[] getColumnFamilies()
TableDescriptorColumnFamilyDescriptor of
all the column families of the table.getColumnFamilies 在接口中 TableDescriptorColumnFamilyDescriptor of all the column
families.public int getRegionReplication()
getRegionReplication 在接口中 TableDescriptorpublic TableDescriptorBuilder.ModifyableTableDescriptor setRegionReplication(int regionReplication)
regionReplication - the replication factor per regionpublic boolean hasRegionMemStoreReplication()
hasRegionMemStoreReplication 在接口中 TableDescriptorpublic TableDescriptorBuilder.ModifyableTableDescriptor setRegionMemStoreReplication(boolean memstoreReplication)
memstoreReplication - true if the new data written to the primary
region should be replicated. false if the secondaries can tollerate to
have new data only when the primary flushes the memstore.public TableDescriptorBuilder.ModifyableTableDescriptor setPriority(int priority)
public int getPriority()
getPriority 在接口中 TableDescriptorpublic Set<byte[]> getColumnFamilyNames()
getColumnFamilyNames 在接口中 TableDescriptorpublic ColumnFamilyDescriptor getColumnFamily(byte[] column)
getColumnFamily 在接口中 TableDescriptorcolumn - Column family namepublic ColumnFamilyDescriptor removeColumnFamily(byte[] column)
column - Name of the column family to be removed.public TableDescriptorBuilder.ModifyableTableDescriptor setCoprocessor(String className) throws IOException
className - Full class name.IOExceptionpublic TableDescriptorBuilder.ModifyableTableDescriptor setCoprocessor(CoprocessorDescriptor cp) throws IOException
IOException - any illegal parameter key/value@Deprecated public TableDescriptorBuilder.ModifyableTableDescriptor setCoprocessorWithSpec(String specStr) throws IOException
specStr - The Coprocessor specification all in in one StringIOExceptionpublic boolean hasCoprocessor(String classNameToMatch)
hasCoprocessor 在接口中 TableDescriptorclassNameToMatch - - Class name of the co-processorpublic List<CoprocessorDescriptor> getCoprocessorDescriptors()
getCoprocessorDescriptors 在接口中 TableDescriptorpublic void removeCoprocessor(String className)
className - Class name of the co-processor@Deprecated public TableDescriptorBuilder.ModifyableTableDescriptor setOwner(User owner)
@Deprecated public TableDescriptorBuilder.ModifyableTableDescriptor setOwnerString(String ownerString)
@Deprecated public String getOwnerString()
getOwnerString 在接口中 TableDescriptorpublic int getColumnFamilyCount()
TableDescriptorgetColumnFamilyCount 在接口中 TableDescriptorCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.