程序包 | 说明 |
---|---|
org.apache.hadoop.hbase | |
org.apache.hadoop.hbase.client |
Provides HBase Client
Table of Contents
Overview
Example API Usage
Overview
To administer HBase, create and drop tables, list and alter tables,
use
Admin . |
限定符和类型 | 字段和说明 |
---|---|
static HTableDescriptor |
HTableDescriptor.NAMESPACE_TABLEDESC
已过时。
Table descriptor for namespace table
|
限定符和类型 | 方法和说明 |
---|---|
HTableDescriptor |
HTableDescriptor.addCoprocessor(String className)
已过时。
Add a table coprocessor to this table.
|
HTableDescriptor |
HTableDescriptor.addCoprocessor(String className,
org.apache.hadoop.fs.Path jarFilePath,
int priority,
Map<String,String> kvs)
已过时。
Add a table coprocessor to this table.
|
HTableDescriptor |
HTableDescriptor.addCoprocessorWithSpec(String specStr)
已过时。
Add a table coprocessor to this table.
|
HTableDescriptor |
HTableDescriptor.addFamily(HColumnDescriptor family)
已过时。
Adds a column family.
|
HTableDescriptor |
HTableDescriptor.modifyFamily(HColumnDescriptor family)
已过时。
Modifies the existing column family.
|
static HTableDescriptor |
HTableDescriptor.parseFrom(byte[] bytes)
已过时。
|
HTableDescriptor |
HTableDescriptor.setCompactionEnabled(boolean isEnable)
已过时。
Setting the table compaction enable flag.
|
HTableDescriptor |
HTableDescriptor.setConfiguration(String key,
String value)
已过时。
Setter for storing a configuration setting in map.
|
HTableDescriptor |
HTableDescriptor.setDurability(Durability durability)
已过时。
Sets the
Durability setting for the table. |
HTableDescriptor |
HTableDescriptor.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.
|
HTableDescriptor |
HTableDescriptor.setMaxFileSize(long maxFileSize)
已过时。
Sets the maximum size upto which a region can grow to after which a region
split is triggered.
|
HTableDescriptor |
HTableDescriptor.setMemStoreFlushSize(long memstoreFlushSize)
已过时。
Represents the maximum size of the memstore after which the contents of the
memstore are flushed to the filesystem.
|
HTableDescriptor |
HTableDescriptor.setMergeEnabled(boolean isEnable)
已过时。
Setting the table region merge enable flag.
|
HTableDescriptor |
HTableDescriptor.setNormalizationEnabled(boolean isEnable)
已过时。
Setting the table normalization enable flag.
|
HTableDescriptor |
HTableDescriptor.setNormalizerTargetRegionCount(int regionCount)
已过时。
|
HTableDescriptor |
HTableDescriptor.setNormalizerTargetRegionSize(long regionSize)
已过时。
|
HTableDescriptor |
HTableDescriptor.setOwner(User owner)
已过时。
since 0.94.1
|
HTableDescriptor |
HTableDescriptor.setOwnerString(String ownerString)
已过时。
since 0.94.1
|
HTableDescriptor |
HTableDescriptor.setPriority(int priority)
已过时。
|
HTableDescriptor |
HTableDescriptor.setReadOnly(boolean readOnly)
已过时。
Setting the table as read only sets all the columns in the table as read
only.
|
HTableDescriptor |
HTableDescriptor.setRegionMemstoreReplication(boolean memstoreReplication)
已过时。
As of release 2.0.0, this will be removed in HBase 3.0.0.
Use
setRegionMemStoreReplication(boolean) instead |
HTableDescriptor |
HTableDescriptor.setRegionMemStoreReplication(boolean memstoreReplication)
已过时。
Enable or Disable the memstore replication from the primary region to the replicas.
|
HTableDescriptor |
HTableDescriptor.setRegionReplication(int regionReplication)
已过时。
Sets the number of replicas per region.
|
HTableDescriptor |
HTableDescriptor.setRegionSplitPolicyClassName(String clazz)
已过时。
This sets the class associated with the region split policy which
determines when a region split should occur.
|
HTableDescriptor |
HTableDescriptor.setSplitEnabled(boolean isEnable)
已过时。
Setting the table region split enable flag.
|
HTableDescriptor |
HTableDescriptor.setValue(byte[] key,
byte[] value)
已过时。
Setter for storing metadata as a (key, value) pair in map
|
HTableDescriptor |
HTableDescriptor.setValue(Bytes key,
Bytes value)
已过时。
|
HTableDescriptor |
HTableDescriptor.setValue(String key,
String value)
已过时。
Setter for storing metadata as a (key, value) pair in map
|
限定符和类型 | 方法和说明 |
---|---|
int |
HTableDescriptor.compareTo(HTableDescriptor other)
已过时。
Compares the descriptor with another descriptor which is passed as a parameter.
|
构造器和说明 |
---|
HTableDescriptor(HTableDescriptor desc)
已过时。
Construct a table descriptor by cloning the descriptor passed as a parameter.
|
HTableDescriptor(HTableDescriptor desc,
boolean deepClone)
已过时。
|
HTableDescriptor(TableName name,
HTableDescriptor desc)
已过时。
Construct a table descriptor by cloning the descriptor passed as a parameter
but using a different table name.
|
限定符和类型 | 类和说明 |
---|---|
class |
ImmutableHTableDescriptor
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
HTableDescriptor[] |
Admin.deleteTables(Pattern pattern)
已过时。
since 2.0 version and will be removed in 3.0 version
This is just a trivial helper method without any magic.
Consider using
Admin.listTableDescriptors(java.util.regex.Pattern)
and Admin.deleteTable(TableName) |
HTableDescriptor[] |
HBaseAdmin.deleteTables(Pattern pattern)
Delete tables matching the passed in pattern and wait on completion.
|
HTableDescriptor[] |
Admin.deleteTables(String regex)
已过时。
since 2.0 version and will be removed in 3.0 version
This is just a trivial helper method without any magic.
Consider using
Admin.listTableDescriptors(Pattern)
and Admin.deleteTable(TableName) |
HTableDescriptor[] |
HBaseAdmin.deleteTables(String regex) |
HTableDescriptor[] |
Admin.disableTables(Pattern pattern)
已过时。
since 2.0 version and will be removed in 3.0 version
This is just a trivial helper method without any magic.
Consider using
Admin.listTableDescriptors(java.util.regex.Pattern)
and Admin.disableTable(org.apache.hadoop.hbase.TableName) |
HTableDescriptor[] |
HBaseAdmin.disableTables(Pattern pattern) |
HTableDescriptor[] |
Admin.disableTables(String regex)
已过时。
since 2.0 version and will be removed in 3.0 version
This is just a trivial helper method without any magic.
Consider using
Admin.listTableDescriptors(Pattern)
and Admin.disableTable(org.apache.hadoop.hbase.TableName) |
HTableDescriptor[] |
HBaseAdmin.disableTables(String regex) |
HTableDescriptor[] |
Admin.enableTables(Pattern pattern)
已过时。
since 2.0 version and will be removed in 3.0 version
This is just a trivial helper method without any magic.
Consider using
Admin.listTableDescriptors(java.util.regex.Pattern)
and Admin.enableTable(org.apache.hadoop.hbase.TableName) |
HTableDescriptor[] |
HBaseAdmin.enableTables(Pattern pattern) |
HTableDescriptor[] |
Admin.enableTables(String regex)
已过时。
since 2.0 version and will be removed in 3.0 version
This is just a trivial helper method without any magic.
Consider using
Admin.listTableDescriptors(Pattern)
and Admin.enableTable(org.apache.hadoop.hbase.TableName) |
HTableDescriptor[] |
HBaseAdmin.enableTables(String regex) |
default HTableDescriptor |
Table.getTableDescriptor()
已过时。
since 2.0 version and will be removed in 3.0 version.
use
Table.getDescriptor() |
HTableDescriptor |
HTable.getTableDescriptor()
已过时。
|
HTableDescriptor |
Admin.getTableDescriptor(TableName tableName)
已过时。
since 2.0 version and will be removed in 3.0 version.
Use
Admin.getDescriptor(TableName) . |
HTableDescriptor |
HBaseAdmin.getTableDescriptor(TableName tableName) |
HTableDescriptor[] |
Admin.getTableDescriptors(List<String> names)
已过时。
since 2.0 version and will be removed in 3.0 version.
use
Admin.listTableDescriptors(List) |
HTableDescriptor[] |
HBaseAdmin.getTableDescriptors(List<String> names) |
HTableDescriptor[] |
Admin.getTableDescriptorsByTableName(List<TableName> tableNames)
已过时。
since 2.0 version and will be removed in 3.0 version.
use
Admin.listTableDescriptors(List) |
HTableDescriptor[] |
HBaseAdmin.getTableDescriptorsByTableName(List<TableName> tableNames) |
HTableDescriptor[] |
Admin.listTableDescriptorsByNamespace(String name)
已过时。
since 2.0 version and will be removed in 3.0 version.
use
Admin.listTableDescriptorsByNamespace(byte[]) |
HTableDescriptor[] |
HBaseAdmin.listTableDescriptorsByNamespace(String name) |
HTableDescriptor[] |
Admin.listTables()
已过时。
since 2.0 version and will be removed in 3.0 version.
Use
Admin.listTableDescriptors() . |
HTableDescriptor[] |
HBaseAdmin.listTables() |
HTableDescriptor[] |
Admin.listTables(Pattern pattern)
已过时。
since 2.0 version and will be removed in 3.0 version.
Use
Admin.listTableDescriptors(java.util.regex.Pattern) . |
HTableDescriptor[] |
HBaseAdmin.listTables(Pattern pattern) |
HTableDescriptor[] |
Admin.listTables(Pattern pattern,
boolean includeSysTables)
已过时。
since 2.0 version and will be removed in 3.0 version.
Use
Admin.listTableDescriptors(java.util.regex.Pattern, boolean) . |
HTableDescriptor[] |
HBaseAdmin.listTables(Pattern pattern,
boolean includeSysTables) |
HTableDescriptor[] |
Admin.listTables(String regex)
已过时。
since 2.0 version and will be removed in 3.0 version. Use
Admin.listTableDescriptors(Pattern) instead. |
HTableDescriptor[] |
HBaseAdmin.listTables(String regex) |
HTableDescriptor[] |
Admin.listTables(String regex,
boolean includeSysTables)
已过时。
since 2.0 version and will be removed in 3.0 version.
Use
Admin.listTableDescriptors(Pattern, boolean) . |
HTableDescriptor[] |
HBaseAdmin.listTables(String regex,
boolean includeSysTables) |
构造器和说明 |
---|
ImmutableHTableDescriptor(HTableDescriptor desc)
已过时。
|
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.