Package org.apache.hadoop.hbase
Class HTableDescriptor
java.lang.Object
org.apache.hadoop.hbase.HTableDescriptor
- All Implemented Interfaces:
Comparable<HTableDescriptor>
,TableDescriptor
- Direct Known Subclasses:
ImmutableHTableDescriptor
@Deprecated
@Public
public class HTableDescriptor
extends Object
implements TableDescriptor, Comparable<HTableDescriptor>
Deprecated.
HTableDescriptor contains the details about an HBase table such as the descriptors of all the
column families, is the table a catalog table,
hbase:meta
, if the table is read
only, the maximum size of the memstore, when the region split should occur, coprocessors
associated with it etc...-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.static final boolean
Deprecated.static final long
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final boolean
Deprecated.static final int
Deprecated.protected final TableDescriptorBuilder.ModifyableTableDescriptor
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final byte[]
Deprecated.static final String
Deprecated.static final byte[]
Deprecated.static final HTableDescriptor
Deprecated.Table descriptor for namespace tablestatic final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final Bytes
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
Deprecated.Fields inherited from interface org.apache.hadoop.hbase.client.TableDescriptor
COMPARATOR, COMPARATOR_IGNORE_REPLICATION
-
Constructor Summary
ModifierConstructorDescriptionDeprecated.protected
Deprecated.Deprecated.Construct a table descriptor by cloning the descriptor passed as a parameter.protected
HTableDescriptor
(HTableDescriptor desc, boolean deepClone) Deprecated.HTableDescriptor
(TableName name) Deprecated.Construct a table descriptor specifying a TableName objectHTableDescriptor
(TableName name, HTableDescriptor desc) Deprecated.Construct a table descriptor by cloning the descriptor passed as a parameter but using a different table name. -
Method Summary
Modifier and TypeMethodDescriptionaddCoprocessor
(String className) Deprecated.Add a table coprocessor to this table.addCoprocessor
(String className, org.apache.hadoop.fs.Path jarFilePath, int priority, Map<String, String> kvs) Deprecated.Add a table coprocessor to this table.addCoprocessorWithSpec
(String specStr) Deprecated.Add a table coprocessor to this table.addFamily
(HColumnDescriptor family) Deprecated.Adds a column family.int
compareTo
(HTableDescriptor other) Deprecated.Compares the descriptor with another descriptor which is passed as a parameter.boolean
Deprecated.Compare the contents of the descriptor with another one passed as a parameter.Deprecated.since 2.0.0 and will be removed in 3.0.0.getColumnFamily
(byte[] name) Deprecated.Returns the ColumnDescriptor for a specific column family with name as specified by the parameter column.int
Deprecated.Returns the count of the column families of the table.Set<byte[]>
Deprecated.Returns all the column family names of the current table.Deprecated.Getter for fetching an unmodifiable map.Deprecated.Getter for accessing the configuration value by keyDeprecated.Return the list of attached co-processor representedDeprecated.Deprecated.Returns the durability setting for the table.Deprecated.The HDFS erasure coding policy for a table.Deprecated.since 2.0.0 and will be removed in 3.0.0.Set<byte[]>
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-18008).getFamily
(byte[] column) Deprecated.since 2.0.0 and will be removed in 3.0.0.Deprecated.This gets the class associated with the flush policy which determines the stores need to be flushed when flushing a region.long
Deprecated.Returns the maximum size upto which a region can grow to after which a region split is triggered.long
Deprecated.Returns the size of the memstore after which a flush to filesystem is triggered.Deprecated.Get the name of the table as a Stringint
Deprecated.Check if there is the target region count.long
Deprecated.Check if there is the target region size.Deprecated.since 0.94.1int
Deprecated.int
Deprecated.Returns the configured replicas per regionDeprecated.Get the region server group this table belongs to.Deprecated.This gets the class associated with the region split policy which determines when a region split should occur.Deprecated.Get the name of the tablebyte[]
getValue
(byte[] key) Deprecated.Getter for accessing the metadata associated with the key.Deprecated.Getter for accessing the metadata associated with the key.Deprecated.Getter for accessing the metadata associated with the key.Deprecated.Returns Getter for fetching an unmodifiable map.boolean
hasColumnFamily
(byte[] name) Deprecated.Checks to see if this table contains the given column familyboolean
hasCoprocessor
(String classNameToMatch) Deprecated.Check if the table has an attached co-processor represented by the name classNameboolean
hasFamily
(byte[] familyName) Deprecated.Checks to see if this table contains the given column familyint
hashCode()
Deprecated.boolean
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0.boolean
Deprecated.Returns true if the read-replicas memstore replication is enabled.boolean
Deprecated.Check if the compaction enable flag of the table is true.boolean
Deprecated.Check if the region merge enable flag of the table is true.boolean
Deprecated.Checks if this table ishbase:meta
region.boolean
Deprecated.Checks if the table is ahbase:meta
tableboolean
Deprecated.Check if normalization enable flag of the table is true.boolean
Deprecated.Check if the readOnly flag of the table is set.boolean
Deprecated.This is vestigial API.boolean
Deprecated.Check if the region split enable flag of the table is true.modifyFamily
(HColumnDescriptor family) Deprecated.Modifies the existing column family.static HTableDescriptor
parseFrom
(byte[] bytes) Deprecated.Parse the serialized representation of aHTableDescriptor
void
remove
(byte[] key) Deprecated.Remove metadata represented by the key from the mapvoid
Deprecated.Remove metadata represented by the key from the mapvoid
Deprecated.Remove metadata represented by the key from the mapvoid
Deprecated.Remove a config setting represented by the key from the mapvoid
removeCoprocessor
(String className) Deprecated.Remove a coprocessor from those set on the tableremoveFamily
(byte[] column) Deprecated.Removes the HColumnDescriptor with name specified by the parameter column from the table descriptorsetCompactionEnabled
(boolean isEnable) Deprecated.Setting the table compaction enable flag.setConfiguration
(String key, String value) Deprecated.Setter for storing a configuration setting in map.setDurability
(Durability durability) Deprecated.Sets theDurability
setting for the table.setErasureCodingPolicy
(String policy) Deprecated.Sets the HDFS erasure coding policy for the table.setFlushPolicyClassName
(String clazz) Deprecated.This sets the class associated with the flush policy which determines determines the stores need to be flushed when flushing a region.setMaxFileSize
(long maxFileSize) Deprecated.Sets the maximum size upto which a region can grow to after which a region split is triggered.setMaxFileSize
(String maxFileSize) Deprecated.setMemStoreFlushSize
(long memstoreFlushSize) Deprecated.Represents the maximum size of the memstore after which the contents of the memstore are flushed to the filesystem.setMemStoreFlushSize
(String memStoreFlushSize) Deprecated.setMergeEnabled
(boolean isEnable) Deprecated.Setting the table region merge enable flag.setNormalizationEnabled
(boolean isEnable) Deprecated.Setting the table normalization enable flag.setNormalizerTargetRegionCount
(int regionCount) Deprecated.setNormalizerTargetRegionSize
(long regionSize) Deprecated.Deprecated.since 0.94.1setOwnerString
(String ownerString) Deprecated.since 0.94.1setPriority
(int priority) Deprecated.setReadOnly
(boolean readOnly) Deprecated.Setting the table as read only sets all the columns in the table as read only.setRegionMemstoreReplication
(boolean memstoreReplication) Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0.setRegionMemStoreReplication
(boolean memstoreReplication) Deprecated.Enable or Disable the memstore replication from the primary region to the replicas.setRegionReplication
(int regionReplication) Deprecated.Sets the number of replicas per region.Deprecated.This sets the class associated with the region split policy which determines when a region split should occur.setSplitEnabled
(boolean isEnable) Deprecated.Setting the table region split enable flag.setValue
(byte[] key, byte[] value) Deprecated.Setter for storing metadata as a (key, value) pair in mapDeprecated.Setter for storing metadata as a (key, value) pair in mapDeprecated.byte[]
Deprecated.Returns This instance serialized with pb with pb magic prefixprotected HColumnDescriptor
Deprecated.Return a HColumnDescriptor for user to keep the compatibility as much as possible.toString()
Deprecated.Deprecated.Returns Name of this table and then a map of all of the column family descriptors (with only the non-default column family attributes)Deprecated.Returns map of all table attributes formatted into string.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.client.TableDescriptor
getCoprocessors, hasGlobalReplicationScope, matchReplicationScope
-
Field Details
-
SPLIT_POLICY
Deprecated.- See Also:
-
MAX_FILESIZE
Deprecated.- See Also:
-
OWNER
Deprecated.- See Also:
-
OWNER_KEY
Deprecated. -
READONLY
Deprecated.- See Also:
-
COMPACTION_ENABLED
Deprecated.- See Also:
-
SPLIT_ENABLED
Deprecated.- See Also:
-
MERGE_ENABLED
Deprecated.- See Also:
-
MEMSTORE_FLUSHSIZE
Deprecated.- See Also:
-
FLUSH_POLICY
Deprecated.- See Also:
-
IS_ROOT
Deprecated.- See Also:
-
IS_META
Deprecated.- See Also:
-
DURABILITY
Deprecated.- See Also:
-
REGION_REPLICATION
Deprecated.- See Also:
-
REGION_MEMSTORE_REPLICATION
Deprecated.- See Also:
-
NORMALIZATION_ENABLED
Deprecated.- See Also:
-
DEFAULT_NORMALIZATION_ENABLED
Deprecated.- See Also:
-
NORMALIZER_TARGET_REGION_COUNT
Deprecated.- See Also:
-
NORMALIZER_TARGET_REGION_SIZE
Deprecated.- See Also:
-
NORMALIZER_TARGET_REGION_SIZE_MB
Deprecated.- See Also:
-
PRIORITY
Deprecated.- See Also:
-
DEFAULT_READONLY
Deprecated.- See Also:
-
DEFAULT_COMPACTION_ENABLED
Deprecated.- See Also:
-
DEFAULT_MEMSTORE_FLUSH_SIZE
Deprecated.- See Also:
-
DEFAULT_REGION_REPLICATION
Deprecated.- See Also:
-
DEFAULT_REGION_MEMSTORE_REPLICATION
Deprecated.- See Also:
-
ERASURE_CODING_POLICY
Deprecated.- See Also:
-
delegatee
Deprecated. -
NAMESPACE_FAMILY_INFO
Deprecated.- See Also:
-
NAMESPACE_FAMILY_INFO_BYTES
Deprecated. -
NAMESPACE_COL_DESC_BYTES
Deprecated. -
NAMESPACE_TABLEDESC
Deprecated.Table descriptor for namespace table
-
-
Constructor Details
-
HTableDescriptor
Deprecated.Construct a table descriptor specifying a TableName object- Parameters:
name
- Table name.- See Also:
-
HTableDescriptor
Deprecated.Construct a table descriptor by cloning the descriptor passed as a parameter.Makes a deep copy of the supplied descriptor. Can make a modifiable descriptor from an ImmutableHTableDescriptor.
- Parameters:
desc
- The descriptor.
-
HTableDescriptor
Deprecated. -
HTableDescriptor
Deprecated. -
HTableDescriptor
Deprecated.Construct a table descriptor by cloning the descriptor passed as a parameter but using a different table name.Makes a deep copy of the supplied descriptor. Can make a modifiable descriptor from an ImmutableHTableDescriptor.
- Parameters:
name
- Table name.desc
- The descriptor.
-
HTableDescriptor
Deprecated.
-
-
Method Details
-
isRootRegion
Deprecated.This is vestigial API. It will be removed in 3.0.- Returns:
- always return the false
-
isMetaRegion
Deprecated.Checks if this table ishbase:meta
region.- Specified by:
isMetaRegion
in interfaceTableDescriptor
- Returns:
- true if this table is
hbase:meta
region
-
isMetaTable
Deprecated.Checks if the table is ahbase:meta
table- Specified by:
isMetaTable
in interfaceTableDescriptor
- Returns:
- true if table is
hbase:meta
region.
-
getValues
Deprecated.Returns Getter for fetching an unmodifiable map.- Specified by:
getValues
in interfaceTableDescriptor
-
setValue
Deprecated.Setter for storing metadata as a (key, value) pair in map- Parameters:
key
- The key.value
- The value. If null, removes the setting.
-
setValue
Deprecated. -
setValue
Deprecated.Setter for storing metadata as a (key, value) pair in map- Parameters:
key
- The key.value
- The value. If null, removes the setting.
-
remove
Deprecated.Remove metadata represented by the key from the map- Parameters:
key
- Key whose key and value we're to remove from HTableDescriptor parameters.
-
remove
Deprecated.Remove metadata represented by the key from the map- Parameters:
key
- Key whose key and value we're to remove from HTableDescriptor parameters.
-
remove
Deprecated.Remove metadata represented by the key from the map- Parameters:
key
- Key whose key and value we're to remove from HTableDescriptor parameters.
-
isReadOnly
Deprecated.Check if the readOnly flag of the table is set. If the readOnly flag is set then the contents of the table can only be read from but not modified.- Specified by:
isReadOnly
in interfaceTableDescriptor
- Returns:
- true if all columns in the table should be read only
-
setReadOnly
Deprecated.Setting the table as read only sets all the columns in the table as read only. By default all tables are modifiable, but if the readOnly flag is set to true then the contents of the table can only be read but not modified.- Parameters:
readOnly
- True if all of the columns in the table should be read only.
-
isCompactionEnabled
Deprecated.Check if the compaction enable flag of the table is true. If flag is false then no minor/major compactions will be done in real.- Specified by:
isCompactionEnabled
in interfaceTableDescriptor
- Returns:
- true if table compaction enabled
-
setCompactionEnabled
Deprecated.Setting the table compaction enable flag.- Parameters:
isEnable
- True if enable compaction.
-
setErasureCodingPolicy
Deprecated.Sets the HDFS erasure coding policy for the table. This will be propagated to HDFS for the data dir of the table. Erasure coding is an alternative to normal replication which takes less space at the cost of locality. The policy must be available and enabled on the hdfs cluster before being set.- Parameters:
policy
- the policy to set, or null to disable erasure coding
-
getErasureCodingPolicy
Deprecated.The HDFS erasure coding policy for a table. This will be set on the data dir of the table, and is an alternative to normal replication which takes less space at the cost of locality.- Specified by:
getErasureCodingPolicy
in interfaceTableDescriptor
- Returns:
- the current policy, or null if undefined
-
isSplitEnabled
Deprecated.Check if the region split enable flag of the table is true. If flag is false then no split will be done.- Specified by:
isSplitEnabled
in interfaceTableDescriptor
- Returns:
- true if table region split enabled
-
setSplitEnabled
Deprecated.Setting the table region split enable flag.- Parameters:
isEnable
- True if enable split.
-
isMergeEnabled
Deprecated.Check if the region merge enable flag of the table is true. If flag is false then no merge will be done.- Specified by:
isMergeEnabled
in interfaceTableDescriptor
- Returns:
- true if table region merge enabled
-
setMergeEnabled
Deprecated.Setting the table region merge enable flag.- Parameters:
isEnable
- True if enable merge.
-
isNormalizationEnabled
Deprecated.Check if normalization enable flag of the table is true. If flag is false then no region normalizer won't attempt to normalize this table.- Specified by:
isNormalizationEnabled
in interfaceTableDescriptor
- Returns:
- true if region normalization is enabled for this table
-
setNormalizationEnabled
Deprecated.Setting the table normalization enable flag.- Parameters:
isEnable
- True if enable normalization.
-
getNormalizerTargetRegionCount
Deprecated.Description copied from interface:TableDescriptor
Check if there is the target region count. If so, the normalize plan will be calculated based on the target region count.- Specified by:
getNormalizerTargetRegionCount
in interfaceTableDescriptor
- Returns:
- target region count after normalize done
-
setNormalizerTargetRegionCount
Deprecated. -
getNormalizerTargetRegionSize
Deprecated.Description copied from interface:TableDescriptor
Check if there is the target region size. If so, the normalize plan will be calculated based on the target region size.- Specified by:
getNormalizerTargetRegionSize
in interfaceTableDescriptor
- Returns:
- target region size after normalize done
-
setNormalizerTargetRegionSize
Deprecated. -
setDurability
Deprecated.Sets theDurability
setting for the table. This defaults to Durability.USE_DEFAULT.- Parameters:
durability
- enum value
-
getDurability
Deprecated.Returns the durability setting for the table.- Specified by:
getDurability
in interfaceTableDescriptor
- Returns:
- durability setting for the table.
-
getTableName
Deprecated.Get the name of the table- Specified by:
getTableName
in interfaceTableDescriptor
-
getNameAsString
Deprecated.Get the name of the table as a String- Returns:
- name of table as a String
-
setRegionSplitPolicyClassName
Deprecated.This sets the class associated with the region split policy which determines when a region split should occur. The class used by default is defined in org.apache.hadoop.hbase.regionserver.RegionSplitPolicy- Parameters:
clazz
- the class name
-
getRegionSplitPolicyClassName
Deprecated.This gets the class associated with the region split policy which determines when a region split should occur. The class used by default is defined in org.apache.hadoop.hbase.regionserver.RegionSplitPolicy- Specified by:
getRegionSplitPolicyClassName
in interfaceTableDescriptor
- Returns:
- the class name of the region split policy for this table. If this returns null, the default split policy is used.
-
getMaxFileSize
Deprecated.Returns the maximum size upto which a region can grow to after which a region split is triggered. The region size is represented by the size of the biggest store file in that region.- Specified by:
getMaxFileSize
in interfaceTableDescriptor
- Returns:
- max hregion size for table, -1 if not set.
- See Also:
-
setMaxFileSize
Deprecated.Sets the maximum size upto which a region can grow to after which a region split is triggered. The region size is represented by the size of the biggest store file in that region, i.e. If the biggest store file grows beyond the maxFileSize, then the region split is triggered. This defaults to a value of 256 MB.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
- Parameters:
maxFileSize
- The maximum file size that a store file can grow to before a split is triggered.
-
setMaxFileSize
Deprecated.- Throws:
HBaseException
-
getMemStoreFlushSize
Deprecated.Returns the size of the memstore after which a flush to filesystem is triggered.- Specified by:
getMemStoreFlushSize
in interfaceTableDescriptor
- Returns:
- memory cache flush size for each hregion, -1 if not set.
- See Also:
-
setMemStoreFlushSize
Deprecated.Represents the maximum size of the memstore after which the contents of the memstore are flushed to the filesystem. This defaults to a size of 64 MB.- Parameters:
memstoreFlushSize
- memory cache flush size for each hregion
-
setMemStoreFlushSize
Deprecated.- Throws:
HBaseException
-
setFlushPolicyClassName
Deprecated.This sets the class associated with the flush policy which determines determines the stores need to be flushed when flushing a region. The class used by default is defined in org.apache.hadoop.hbase.regionserver.FlushPolicy.- Parameters:
clazz
- the class name
-
getFlushPolicyClassName
Deprecated.This gets the class associated with the flush policy which determines the stores need to be flushed when flushing a region. The class used by default is defined in org.apache.hadoop.hbase.regionserver.FlushPolicy.- Specified by:
getFlushPolicyClassName
in interfaceTableDescriptor
- Returns:
- the class name of the flush policy for this table. If this returns null, the default flush policy is used.
-
addFamily
Deprecated.Adds a column family. For the updating purpose please usemodifyFamily(HColumnDescriptor)
instead.- Parameters:
family
- HColumnDescriptor of family to add.
-
modifyFamily
Deprecated.Modifies the existing column family.- Parameters:
family
- HColumnDescriptor of family to update- Returns:
- this (for chained invocation)
-
hasFamily
Deprecated.Checks to see if this table contains the given column family- Parameters:
familyName
- Family name or column name.- Returns:
- true if the table contains the specified family name
-
toString
Deprecated. -
toStringCustomizedValues
Deprecated.Description copied from interface:TableDescriptor
Returns Name of this table and then a map of all of the column family descriptors (with only the non-default column family attributes)- Specified by:
toStringCustomizedValues
in interfaceTableDescriptor
- Returns:
- Name of this table and then a map of all of the column family descriptors (with only the non-default column family attributes)
-
toStringTableAttributes
Deprecated.Returns map of all table attributes formatted into string. -
equals
Deprecated.Compare the contents of the descriptor with another one passed as a parameter. Checks if the obj passed is an instance of HTableDescriptor, if yes then the contents of the descriptors are compared. -
hashCode
Deprecated. -
compareTo
Deprecated.Compares the descriptor with another descriptor which is passed as a parameter. This compares the content of the two descriptors and not the reference.- Specified by:
compareTo
in interfaceComparable<HTableDescriptor>
- Returns:
- 0 if the contents of the descriptors are exactly matching, 1 if there is a mismatch in the contents
-
getFamilies
Deprecated.since 2.0.0 and will be removed in 3.0.0. UsegetColumnFamilies()
instead.Returns an unmodifiable collection of all theHColumnDescriptor
of all the column families of the table.- Returns:
- Immutable collection of
HColumnDescriptor
of all the column families. - See Also:
-
getRegionReplication
Deprecated.Returns the configured replicas per region- Specified by:
getRegionReplication
in interfaceTableDescriptor
-
setRegionReplication
Deprecated.Sets the number of replicas per region.- Parameters:
regionReplication
- the replication factor per region
-
hasRegionMemstoreReplication
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0. UsehasRegionMemStoreReplication()
instead -
hasRegionMemStoreReplication
Deprecated.Returns true if the read-replicas memstore replication is enabled.- Specified by:
hasRegionMemStoreReplication
in interfaceTableDescriptor
-
setRegionMemstoreReplication
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0. UsesetRegionMemStoreReplication(boolean)
instead -
setRegionMemStoreReplication
Deprecated.Enable or Disable the memstore replication from the primary region to the replicas. The replication will be used only for meta operations (e.g. flush, compaction, ...)- Parameters:
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.
-
setPriority
Deprecated. -
getPriority
Deprecated.- Specified by:
getPriority
in interfaceTableDescriptor
-
getFamiliesKeys
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 (HBASE-18008). UsegetColumnFamilyNames()
.Returns all the column family names of the current table. The map of HTableDescriptor contains mapping of family name to HColumnDescriptors. This returns all the keys of the family map which represents the column family names of the table.- Returns:
- Immutable sorted set of the keys of the families.
-
getColumnFamilyCount
Deprecated.Returns the count of the column families of the table.- Specified by:
getColumnFamilyCount
in interfaceTableDescriptor
- Returns:
- Count of column families of the table
-
getColumnFamilies
Deprecated.since 2.0.0 and will be removed in 3.0.0.Returns an array all theHColumnDescriptor
of the column families of the table.- Specified by:
getColumnFamilies
in interfaceTableDescriptor
- Returns:
- Array of all the HColumnDescriptors of the current table
- See Also:
-
getFamily
Deprecated.since 2.0.0 and will be removed in 3.0.0. UsegetColumnFamily(byte[])
instead.Returns the HColumnDescriptor for a specific column family with name as specified by the parameter column.- Parameters:
column
- Column family name- Returns:
- Column descriptor for the passed family name or the family on passed in column.
- See Also:
-
removeFamily
Deprecated.Removes the HColumnDescriptor with name specified by the parameter column from the table descriptor- Parameters:
column
- Name of the column family to be removed.- Returns:
- Column descriptor for the passed family name or the family on passed in column.
-
toHColumnDescriptor
Deprecated.Return a HColumnDescriptor for user to keep the compatibility as much as possible.- Parameters:
desc
- read-only ColumnFamilyDescriptor- Returns:
- The older implementation of ColumnFamilyDescriptor
-
addCoprocessor
Deprecated.Add a table coprocessor to this table. The coprocessor type must be org.apache.hadoop.hbase.coprocessor.RegionCoprocessor. It won't check if the class can be loaded or not. Whether a coprocessor is loadable or not will be determined when a region is opened.- Parameters:
className
- Full class name.- Throws:
IOException
-
addCoprocessor
public HTableDescriptor addCoprocessor(String className, org.apache.hadoop.fs.Path jarFilePath, int priority, Map<String, String> kvs) throws IOExceptionDeprecated.Add a table coprocessor to this table. The coprocessor type must be org.apache.hadoop.hbase.coprocessor.RegionCoprocessor. It won't check if the class can be loaded or not. Whether a coprocessor is loadable or not will be determined when a region is opened.- Parameters:
jarFilePath
- Path of the jar file. If it's null, the class will be loaded from default classloader.className
- Full class name.priority
- Prioritykvs
- Arbitrary key-value parameter pairs passed into the coprocessor.- Throws:
IOException
-
addCoprocessorWithSpec
Deprecated.Add a table coprocessor to this table. The coprocessor type must be org.apache.hadoop.hbase.coprocessor.RegionCoprocessor. It won't check if the class can be loaded or not. Whether a coprocessor is loadable or not will be determined when a region is opened.- Parameters:
specStr
- The Coprocessor specification all in in one String formatted so matchesHConstants.CP_HTD_ATTR_VALUE_PATTERN
- Throws:
IOException
-
hasCoprocessor
Deprecated.Check if the table has an attached co-processor represented by the name className- Specified by:
hasCoprocessor
in interfaceTableDescriptor
- Parameters:
classNameToMatch
- - Class name of the co-processor- Returns:
- true of the table has a co-processor className
-
getCoprocessorDescriptors
Deprecated.Description copied from interface:TableDescriptor
Return the list of attached co-processor represented- Specified by:
getCoprocessorDescriptors
in interfaceTableDescriptor
- Returns:
- The list of CoprocessorDescriptor
-
removeCoprocessor
Deprecated.Remove a coprocessor from those set on the table- Parameters:
className
- Class name of the co-processor
-
setOwner
Deprecated.since 0.94.1Set the table owner.- See Also:
-
setOwnerString
Deprecated.since 0.94.1Set the table owner.- See Also:
-
getOwnerString
Deprecated.since 0.94.1Get the table owner.- Specified by:
getOwnerString
in interfaceTableDescriptor
- See Also:
-
toByteArray
Deprecated.Returns This instance serialized with pb with pb magic prefix -
parseFrom
Deprecated.Parse the serialized representation of aHTableDescriptor
- Parameters:
bytes
- A pb serializedHTableDescriptor
instance with pb magic prefix- Returns:
- An instance of
HTableDescriptor
made frombytes
- Throws:
DeserializationException
IOException
- See Also:
-
getConfigurationValue
Deprecated.Getter for accessing the configuration value by key -
getConfiguration
Deprecated.Getter for fetching an unmodifiable map. -
setConfiguration
Deprecated.Setter for storing a configuration setting in map.- Parameters:
key
- Config key. Same as XML config key e.g. hbase.something.or.other.value
- String value. If null, removes the setting.
-
removeConfiguration
Deprecated.Remove a config setting represented by the key from the map -
getValue
Deprecated.Description copied from interface:TableDescriptor
Getter for accessing the metadata associated with the key.- Specified by:
getValue
in interfaceTableDescriptor
- Parameters:
key
- The key.- Returns:
- A clone value. Null if no mapping for the key
-
getValue
Deprecated.Description copied from interface:TableDescriptor
Getter for accessing the metadata associated with the key.- Specified by:
getValue
in interfaceTableDescriptor
- Parameters:
key
- The key.- Returns:
- Null if no mapping for the key
-
getValue
Deprecated.Description copied from interface:TableDescriptor
Getter for accessing the metadata associated with the key.- Specified by:
getValue
in interfaceTableDescriptor
- Parameters:
key
- The key.- Returns:
- A clone value. Null if no mapping for the key
-
getColumnFamilyNames
Deprecated.Description copied from interface:TableDescriptor
Returns all the column family names of the current table. The map of TableDescriptor contains mapping of family name to ColumnDescriptor. This returns all the keys of the family map which represents the column family names of the table.- Specified by:
getColumnFamilyNames
in interfaceTableDescriptor
- Returns:
- Immutable sorted set of the keys of the families.
-
hasColumnFamily
Deprecated.Description copied from interface:TableDescriptor
Checks to see if this table contains the given column family- Specified by:
hasColumnFamily
in interfaceTableDescriptor
- Parameters:
name
- Family name or column name.- Returns:
- true if the table contains the specified family name
-
getColumnFamily
Deprecated.Description copied from interface:TableDescriptor
Returns the ColumnDescriptor for a specific column family with name as specified by the parameter column.- Specified by:
getColumnFamily
in interfaceTableDescriptor
- Parameters:
name
- Column family name- Returns:
- Column descriptor for the passed family name or the family on passed in column.
-
getDelegateeForModification
Deprecated. -
getRegionServerGroup
Deprecated.Description copied from interface:TableDescriptor
Get the region server group this table belongs to. The regions of this table will be placed only on the region servers within this group. If not present, will be placed onRSGroupInfo.DEFAULT_GROUP
.- Specified by:
getRegionServerGroup
in interfaceTableDescriptor
-
TableDescriptorBuilder
to buildHTableDescriptor
.