Package | Description |
---|---|
org.apache.hadoop.hbase | |
org.apache.hadoop.hbase.avro |
Provides an HBase Avro service.
|
org.apache.hadoop.hbase.catalog | |
org.apache.hadoop.hbase.client |
Provides HBase Client
|
org.apache.hadoop.hbase.constraint |
Restrict the domain of a data attribute, often times to fulfill business rules/requirements.
|
org.apache.hadoop.hbase.coprocessor |
Table of Contents
|
org.apache.hadoop.hbase.ipc |
Tools to help define network clients and servers.
|
org.apache.hadoop.hbase.master | |
org.apache.hadoop.hbase.master.handler | |
org.apache.hadoop.hbase.master.snapshot | |
org.apache.hadoop.hbase.migration | |
org.apache.hadoop.hbase.regionserver | |
org.apache.hadoop.hbase.regionserver.handler | |
org.apache.hadoop.hbase.regionserver.wal | |
org.apache.hadoop.hbase.replication.regionserver | |
org.apache.hadoop.hbase.rest.client | |
org.apache.hadoop.hbase.rest.model | |
org.apache.hadoop.hbase.security.access | |
org.apache.hadoop.hbase.snapshot | |
org.apache.hadoop.hbase.util |
Modifier and Type | Field and Description |
---|---|
static HTableDescriptor |
HTableDescriptor.META_TABLEDESC
Table descriptor for
.META. catalog table |
static HTableDescriptor |
HTableDescriptor.ROOT_TABLEDESC
Table descriptor for
|
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
TableDescriptors.get(byte[] tablename) |
HTableDescriptor |
TableDescriptors.get(String tablename) |
HTableDescriptor |
HRegionInfo.getTableDesc()
Deprecated.
Do not use; expensive call
use HRegionInfo.getTableNameAsString() in place of
HRegionInfo.getTableDesc().getNameAsString()
|
HTableDescriptor |
TableDescriptors.remove(String tablename) |
Modifier and Type | Method and Description |
---|---|
Map<String,HTableDescriptor> |
TableDescriptors.getAll()
Get Map of all HTableDescriptors.
|
Modifier and Type | Method and Description |
---|---|
void |
TableDescriptors.add(HTableDescriptor htd)
Add or update descriptor
|
int |
HTableDescriptor.compareTo(HTableDescriptor other)
Compares the descriptor with another descriptor which is passed as a parameter.
|
void |
HRegionInfo.setTableDesc(HTableDescriptor newDesc)
Deprecated.
Do not use; expensive call
|
Constructor and Description |
---|
HTableDescriptor(HTableDescriptor desc)
Construct a table descriptor by cloning the descriptor passed as a parameter.
|
Modifier and Type | Method and Description |
---|---|
static HTableDescriptor |
AvroUtil.atdToHTD(ATableDescriptor atd) |
Modifier and Type | Method and Description |
---|---|
static ATableDescriptor |
AvroUtil.htdToATD(HTableDescriptor table) |
Modifier and Type | Method and Description |
---|---|
static Set<HTableDescriptor> |
MetaMigrationRemovingHTD.updateMetaWithNewRegionInfo(MasterServices masterServices)
Deprecated.
Update legacy META rows, removing HTD from HRI.
|
Modifier and Type | Class and Description |
---|---|
class |
UnmodifyableHTableDescriptor
Read-only table descriptor.
|
Modifier and Type | Method and Description |
---|---|
HTableDescriptor[] |
HBaseAdmin.deleteTables(Pattern pattern)
Delete tables matching the passed in pattern and wait on completion.
|
HTableDescriptor[] |
HBaseAdmin.deleteTables(String regex)
Deletes tables matching the passed in pattern and wait on completion.
|
HTableDescriptor[] |
HBaseAdmin.disableTables(Pattern pattern)
Disable tables matching the passed in pattern and wait on completion.
|
HTableDescriptor[] |
HBaseAdmin.disableTables(String regex)
Disable tables matching the passed in pattern and wait on completion.
|
HTableDescriptor[] |
HBaseAdmin.enableTables(Pattern pattern)
Enable tables matching the passed in pattern and wait on completion.
|
HTableDescriptor[] |
HBaseAdmin.enableTables(String regex)
Enable tables matching the passed in pattern and wait on completion.
|
HTableDescriptor |
HConnection.getHTableDescriptor(byte[] tableName) |
HTableDescriptor[] |
HConnection.getHTableDescriptors(List<String> tableNames) |
HTableDescriptor |
HTableInterface.getTableDescriptor()
Gets the
table descriptor for this table. |
HTableDescriptor |
HTable.getTableDescriptor()
Gets the
table descriptor for this table. |
HTableDescriptor |
HBaseAdmin.getTableDescriptor(byte[] tableName)
Method for getting the tableDescriptor
|
HTableDescriptor[] |
HBaseAdmin.getTableDescriptors(List<String> tableNames)
Get tableDescriptors
|
HTableDescriptor[] |
HConnection.listTables()
List all the userspace tables.
|
HTableDescriptor[] |
HBaseAdmin.listTables()
List all the userspace tables.
|
HTableDescriptor[] |
HBaseAdmin.listTables(Pattern pattern)
List all the userspace tables matching the given pattern.
|
HTableDescriptor[] |
HBaseAdmin.listTables(String regex)
List all the userspace tables matching the given regular expression.
|
Modifier and Type | Method and Description |
---|---|
void |
HBaseAdmin.createTable(HTableDescriptor desc)
Creates a new table.
|
void |
HBaseAdmin.createTable(HTableDescriptor desc,
byte[][] splitKeys)
Creates a new table with an initial set of empty regions defined by the
specified split keys.
|
void |
HBaseAdmin.createTable(HTableDescriptor desc,
byte[] startKey,
byte[] endKey,
int numRegions)
Creates a new table with the specified number of regions.
|
void |
HBaseAdmin.createTableAsync(HTableDescriptor desc,
byte[][] splitKeys)
Creates a new table but does not block and wait for it to come online.
|
void |
HBaseAdmin.modifyTable(byte[] tableName,
HTableDescriptor htd)
Modify an existing table, more IRB friendly version.
|
Modifier and Type | Method and Description |
---|---|
static void |
Constraints.add(HTableDescriptor desc,
Class<? extends Constraint>... constraints)
Add configuration-less constraints to the table.
|
static void |
Constraints.add(HTableDescriptor desc,
Class<? extends Constraint> constraint,
org.apache.hadoop.conf.Configuration conf)
Add a
Constraint to the table with the given configuration |
static void |
Constraints.add(HTableDescriptor desc,
Pair<Class<? extends Constraint>,org.apache.hadoop.conf.Configuration>... constraints)
Add constraints and their associated configurations to the table.
|
static void |
Constraints.disable(HTableDescriptor desc)
Turn off processing constraints for a given table, even if constraints have
been turned on or added.
|
static void |
Constraints.disableConstraint(HTableDescriptor desc,
Class<? extends Constraint> clazz)
Disable the given
Constraint . |
static void |
Constraints.enable(HTableDescriptor desc)
Enable constraints on a table.
|
static void |
Constraints.enableConstraint(HTableDescriptor desc,
Class<? extends Constraint> clazz)
Enable the given
Constraint . |
static boolean |
Constraints.enabled(HTableDescriptor desc,
Class<? extends Constraint> clazz)
Check to see if the given constraint is enabled.
|
static boolean |
Constraints.has(HTableDescriptor desc,
Class<? extends Constraint> clazz)
Check to see if the Constraint is currently set.
|
static void |
Constraints.remove(HTableDescriptor desc)
Remove all
Constraints that have been added to the table
and turn off the constraint processing. |
static void |
Constraints.remove(HTableDescriptor desc,
Class<? extends Constraint> clazz)
Remove the constraint (and associated information) for the table
descriptor.
|
static void |
Constraints.setConfiguration(HTableDescriptor desc,
Class<? extends Constraint> clazz,
org.apache.hadoop.conf.Configuration configuration)
Update the configuration for the
Constraint ; does not change the
order in which the constraint is run. |
Modifier and Type | Method and Description |
---|---|
void |
MasterObserver.postGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<HTableDescriptor> descriptors)
Called after a getTableDescriptors request has been processed.
|
void |
BaseMasterObserver.postGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<HTableDescriptor> descriptors) |
void |
MasterObserver.preGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<String> tableNamesList,
List<HTableDescriptor> descriptors)
Called before a getTableDescriptors request has been processed.
|
void |
BaseMasterObserver.preGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<String> tableNamesList,
List<HTableDescriptor> descriptors) |
Modifier and Type | Method and Description |
---|---|
HTableDescriptor[] |
HMasterInterface.getHTableDescriptors()
Get array of all HTDs.
|
HTableDescriptor[] |
HMasterInterface.getHTableDescriptors(List<String> tableNames)
Get array of HTDs for requested tables.
|
Modifier and Type | Method and Description |
---|---|
void |
HMasterInterface.createTable(HTableDescriptor desc,
byte[][] splitKeys)
Creates a new table asynchronously.
|
void |
HMasterInterface.modifyTable(byte[] tableName,
HTableDescriptor htd)
Modify a table's metadata
|
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
MasterFileSystem.addColumn(byte[] tableName,
HColumnDescriptor hcd)
Add column to a table
|
HTableDescriptor |
MasterFileSystem.deleteColumn(byte[] tableName,
byte[] familyName)
Delete column of a table
|
HTableDescriptor[] |
HMaster.getHTableDescriptors()
Get all table descriptors
|
HTableDescriptor[] |
HMaster.getHTableDescriptors(List<String> tableNames)
Get HTD array for given tables
|
HTableDescriptor |
MasterFileSystem.modifyColumn(byte[] tableName,
HColumnDescriptor hcd)
Modify Column of a table
|
Modifier and Type | Method and Description |
---|---|
void |
HMaster.createTable(HTableDescriptor hTableDescriptor,
byte[][] splitKeys) |
void |
MasterServices.createTable(HTableDescriptor desc,
byte[][] splitKeys)
Create a table using the given table definition.
|
void |
MasterFileSystem.createTableDescriptor(HTableDescriptor htableDescriptor)
Create new HTableDescriptor in HDFS.
|
void |
HMaster.modifyTable(byte[] tableName,
HTableDescriptor htd) |
void |
MasterServices.modifyTable(byte[] tableName,
HTableDescriptor descriptor)
Modify the descriptor of an existing table
|
void |
MasterCoprocessorHost.postCloneSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterCoprocessorHost.postRestoreSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterCoprocessorHost.postSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterCoprocessorHost.preCloneSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterCoprocessorHost.preRestoreSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterCoprocessorHost.preSnapshot(HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
Modifier and Type | Method and Description |
---|---|
void |
MasterCoprocessorHost.postGetTableDescriptors(List<HTableDescriptor> descriptors) |
boolean |
MasterCoprocessorHost.preGetTableDescriptors(List<String> tableNamesList,
List<HTableDescriptor> descriptors) |
Modifier and Type | Field and Description |
---|---|
protected HTableDescriptor |
CreateTableHandler.hTableDescriptor |
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
TableEventHandler.getTableDescriptor()
Gets a TableDescriptor from the masterServices.
|
Constructor and Description |
---|
CreateTableHandler(Server server,
MasterFileSystem fileSystemManager,
ServerManager serverManager,
HTableDescriptor hTableDescriptor,
org.apache.hadoop.conf.Configuration conf,
HRegionInfo[] newRegions,
CatalogTracker catalogTracker,
AssignmentManager assignmentManager) |
ModifyTableHandler(byte[] tableName,
HTableDescriptor htd,
Server server,
MasterServices masterServices) |
Constructor and Description |
---|
CloneSnapshotHandler(MasterServices masterServices,
HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor,
MasterMetrics metricsMaster) |
RestoreSnapshotHandler(MasterServices masterServices,
HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor htd,
MasterMetrics metricsMaster) |
Modifier and Type | Field and Description |
---|---|
protected HTableDescriptor |
HRegionInfo090x.tableDesc |
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
HRegionInfo090x.getTableDesc() |
Modifier and Type | Method and Description |
---|---|
void |
HRegionInfo090x.setTableDesc(HTableDescriptor newDesc) |
Constructor and Description |
---|
HRegionInfo090x(HTableDescriptor tableDesc,
byte[] startKey,
byte[] endKey)
Construct HRegionInfo with explicit parameters
|
HRegionInfo090x(HTableDescriptor tableDesc,
byte[] startKey,
byte[] endKey,
boolean split)
Construct HRegionInfo with explicit parameters
|
HRegionInfo090x(HTableDescriptor tableDesc,
byte[] startKey,
byte[] endKey,
boolean split,
long regionid)
Construct HRegionInfo with explicit parameters
|
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
HRegion.getTableDesc() |
Modifier and Type | Method and Description |
---|---|
static HDFSBlocksDistribution |
HRegion.computeHDFSBlocksDistribution(org.apache.hadoop.conf.Configuration conf,
HTableDescriptor tableDescriptor,
String regionEncodedName)
This is a helper function to compute HDFS block distribution on demand
|
static HDFSBlocksDistribution |
HRegion.computeHDFSBlocksDistribution(org.apache.hadoop.conf.Configuration conf,
HTableDescriptor tableDescriptor,
String regionEncodedName,
org.apache.hadoop.fs.Path tablePath)
This is a helper function to compute HDFS block distribution on demand
|
static HRegion |
HRegion.createHRegion(HRegionInfo info,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.conf.Configuration conf,
HTableDescriptor hTableDescriptor)
Convenience method creating new HRegions.
|
static HRegion |
HRegion.createHRegion(HRegionInfo info,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.conf.Configuration conf,
HTableDescriptor hTableDescriptor,
HLog hlog) |
static HRegion |
HRegion.createHRegion(HRegionInfo info,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.conf.Configuration conf,
HTableDescriptor hTableDescriptor,
HLog hlog,
boolean initialize)
Convenience method creating new HRegions.
|
static HRegion |
HRegion.createHRegion(HRegionInfo info,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.conf.Configuration conf,
HTableDescriptor hTableDescriptor,
HLog hlog,
boolean initialize,
boolean ignoreHLog)
Convenience method creating new HRegions.
|
static HRegion |
HRegion.newHRegion(org.apache.hadoop.fs.Path tableDir,
HLog log,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf,
HRegionInfo regionInfo,
HTableDescriptor htd,
RegionServerServices rsServices)
A utility method to create new instances of HRegion based on the
HConstants.REGION_IMPL configuration property. |
static HRegion |
HRegion.openHRegion(HRegionInfo info,
HTableDescriptor htd,
HLog wal,
org.apache.hadoop.conf.Configuration conf)
Open a Region.
|
static HRegion |
HRegion.openHRegion(HRegionInfo info,
HTableDescriptor htd,
HLog wal,
org.apache.hadoop.conf.Configuration conf,
RegionServerServices rsServices,
CancelableProgressable reporter)
Open a Region.
|
static HRegion |
HRegion.openHRegion(org.apache.hadoop.fs.Path tableDir,
HRegionInfo info,
HTableDescriptor htd,
HLog wal,
org.apache.hadoop.conf.Configuration conf) |
static HRegion |
HRegion.openHRegion(org.apache.hadoop.fs.Path tableDir,
HRegionInfo info,
HTableDescriptor htd,
HLog wal,
org.apache.hadoop.conf.Configuration conf,
RegionServerServices rsServices,
CancelableProgressable reporter)
Open a Region.
|
Constructor and Description |
---|
HRegion(org.apache.hadoop.fs.Path tableDir,
HLog log,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration confParam,
HRegionInfo regionInfo,
HTableDescriptor htd,
RegionServerServices rsServices)
HRegion constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
HLog.append(HRegionInfo info,
byte[] tableName,
WALEdit edits,
long now,
HTableDescriptor htd)
Only used in tests.
|
long |
HLog.append(HRegionInfo info,
byte[] tableName,
WALEdit edits,
UUID clusterId,
long now,
HTableDescriptor htd)
Append a set of edits to the log.
|
long |
HLog.append(HRegionInfo regionInfo,
HLogKey logKey,
WALEdit logEdit,
HTableDescriptor htd,
boolean doSync)
Append an entry to the log.
|
long |
HLog.appendNoSync(HRegionInfo info,
byte[] tableName,
WALEdit edits,
UUID clusterId,
long now,
HTableDescriptor htd)
Append a set of edits to the log.
|
protected void |
HLog.doWrite(HRegionInfo info,
HLogKey logKey,
WALEdit logEdit,
HTableDescriptor htd) |
void |
WALActionsListener.visitLogEntryBeforeWrite(HTableDescriptor htd,
HLogKey logKey,
WALEdit logEdit) |
Modifier and Type | Method and Description |
---|---|
void |
Replication.visitLogEntryBeforeWrite(HTableDescriptor htd,
HLogKey logKey,
WALEdit logEdit) |
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
RemoteHTable.getTableDescriptor() |
Modifier and Type | Method and Description |
---|---|
void |
RemoteAdmin.createTable(HTableDescriptor desc)
Creates a new table.
|
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
TableSchemaModel.getTableDescriptor() |
Constructor and Description |
---|
TableSchemaModel(HTableDescriptor htd)
Constructor
|
Modifier and Type | Field and Description |
---|---|
static HTableDescriptor |
AccessControlLists.ACL_TABLEDESC
Table descriptor for ACL internal table
|
Modifier and Type | Method and Description |
---|---|
void |
AccessController.postGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<HTableDescriptor> descriptors) |
void |
AccessController.preGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<String> tableNamesList,
List<HTableDescriptor> descriptors) |
Modifier and Type | Method and Description |
---|---|
static HTableDescriptor |
RestoreSnapshotHelper.cloneTableSchema(HTableDescriptor snapshotTableDescriptor,
byte[] tableName)
Create a new table descriptor cloning the snapshot table schema.
|
Modifier and Type | Method and Description |
---|---|
static HTableDescriptor |
RestoreSnapshotHelper.cloneTableSchema(HTableDescriptor snapshotTableDescriptor,
byte[] tableName)
Create a new table descriptor cloning the snapshot table schema.
|
Constructor and Description |
---|
RestoreSnapshotHelper(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
HBaseProtos.SnapshotDescription snapshotDescription,
org.apache.hadoop.fs.Path snapshotDir,
HTableDescriptor tableDescriptor,
org.apache.hadoop.fs.Path tableDir,
ForeignExceptionDispatcher monitor,
MonitoredTask status) |
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
FSTableDescriptors.get(byte[] tablename) |
HTableDescriptor |
FSTableDescriptors.get(String tablename) |
static HTableDescriptor |
FSTableDescriptors.getTableDescriptor(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path tableDir) |
static HTableDescriptor |
FSTableDescriptors.getTableDescriptor(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path hbaseRootDir,
byte[] tableName)
Get HTD from HDFS.
|
static HTableDescriptor |
FSTableDescriptors.getTableDescriptorFromFs(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path tableDir)
Returns the latest table descriptor for the table located at the given directory
directly from the file system if it exists.
|
static HTableDescriptor |
FSTableDescriptors.getTableDescriptorFromFs(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path hbaseRootDir,
String tableName)
Returns the latest table descriptor for the given table directly from the file system
if it exists, bypassing the local cache.
|
HTableDescriptor |
FSTableDescriptors.remove(String tablename) |
Modifier and Type | Method and Description |
---|---|
Map<String,HTableDescriptor> |
FSTableDescriptors.getAll() |
Modifier and Type | Method and Description |
---|---|
void |
FSTableDescriptors.add(HTableDescriptor htd) |
static HRegion |
HBaseFsckRepair.createHDFSRegionDir(org.apache.hadoop.conf.Configuration conf,
HRegionInfo hri,
HTableDescriptor htd)
Creates, flushes, and closes a new region.
|
static List<HRegionInfo> |
ModifyRegionUtils.createRegions(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions)
Create new set of regions on the specified file-system.
|
static List<HRegionInfo> |
ModifyRegionUtils.createRegions(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions,
ModifyRegionUtils.RegionFillTask task)
Create new set of regions on the specified file-system.
|
static boolean |
FSTableDescriptors.createTableDescriptor(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootdir,
HTableDescriptor htableDescriptor)
Create new HTableDescriptor in HDFS.
|
static boolean |
FSTableDescriptors.createTableDescriptor(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootdir,
HTableDescriptor htableDescriptor,
boolean forceCreation)
Create new HTableDescriptor in HDFS.
|
static boolean |
FSTableDescriptors.createTableDescriptor(HTableDescriptor htableDescriptor,
org.apache.hadoop.conf.Configuration conf)
Create new HTableDescriptor in HDFS.
|
static boolean |
FSTableDescriptors.createTableDescriptorForTableDirectory(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path tabledir,
HTableDescriptor htableDescriptor,
boolean forceCreation)
Create a new HTableDescriptor in HDFS in the specified table directory.
|
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.