Modifier and Type | Field and Description |
---|---|
static HTableDescriptor |
HTableDescriptor.META_TABLEDESC
Deprecated.
Use TableDescriptors#get(TableName.META_TABLE_NAME) or
HBaseAdmin#getTableDescriptor(TableName.META_TABLE_NAME) instead.
|
static HTableDescriptor |
HTableDescriptor.NAMESPACE_TABLEDESC
Table descriptor for namespace table
|
Modifier and Type | Method and Description |
---|---|
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.
|
private HTableDescriptor |
HTableDescriptor.addCoprocessorToMap(String specStr)
Add coprocessor to values Map
|
HTableDescriptor |
HTableDescriptor.addCoprocessorWithSpec(String specStr)
Add a table coprocessor to this table.
|
HTableDescriptor |
HTableDescriptor.addFamily(HColumnDescriptor family)
Adds a column family.
|
static HTableDescriptor |
HTableDescriptor.convert(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.TableSchema ts) |
HTableDescriptor |
TableDescriptors.get(TableName tableName) |
static HTableDescriptor |
HTableDescriptor.metaTableDescriptor(org.apache.hadoop.conf.Configuration conf) |
HTableDescriptor |
HTableDescriptor.modifyFamily(HColumnDescriptor family)
Modifies the existing column family.
|
static HTableDescriptor |
HTableDescriptor.parseFrom(byte[] bytes) |
HTableDescriptor |
TableDescriptors.remove(TableName tablename) |
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
configuration 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.setName(byte[] name)
Deprecated.
|
HTableDescriptor |
HTableDescriptor.setName(TableName name)
Deprecated.
|
HTableDescriptor |
HTableDescriptor.setNormalizationEnabled(boolean isEnable)
Setting the table normalization enable flag.
|
HTableDescriptor |
HTableDescriptor.setOwner(User owner)
Deprecated.
|
HTableDescriptor |
HTableDescriptor.setOwnerString(String ownerString)
Deprecated.
|
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)
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.setValue(byte[] key,
byte[] value)
Setter for storing metadata as a (key, value) pair in
values map |
HTableDescriptor |
HTableDescriptor.setValue(ImmutableBytesWritable key,
ImmutableBytesWritable value) |
private HTableDescriptor |
HTableDescriptor.setValue(ImmutableBytesWritable key,
String value) |
HTableDescriptor |
HTableDescriptor.setValue(String key,
String value)
Setter for storing metadata as a (key, value) pair in
values map |
Modifier and Type | Method and Description |
---|---|
Map<String,HTableDescriptor> |
TableDescriptors.getAll()
Get Map of all HTableDescriptors.
|
Map<String,HTableDescriptor> |
TableDescriptors.getByNamespace(String name)
Get Map of all NamespaceDescriptors for a given namespace.
|
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.
|
Constructor and Description |
---|
HTableDescriptor(HTableDescriptor desc)
Construct a table descriptor by cloning the descriptor passed as a parameter.
|
HTableDescriptor(TableName name,
HTableDescriptor desc)
Construct a table descriptor by cloning the descriptor passed as a parameter
but using a different table name.
|
Modifier and Type | Class and Description |
---|---|
class |
UnmodifyableHTableDescriptor
Read-only table descriptor.
|
Modifier and Type | Field and Description |
---|---|
private HTableDescriptor |
HBaseAdmin.CreateTableFuture.desc |
private HTableDescriptor |
TableSnapshotScanner.htd |
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
UnmodifyableHTableDescriptor.addFamily(HColumnDescriptor family)
Does NOT add a column family.
|
HTableDescriptor[] |
HBaseAdmin.deleteTables(Pattern pattern)
Delete tables matching the passed in pattern and wait on completion.
|
HTableDescriptor[] |
Admin.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[] |
Admin.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[] |
Admin.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[] |
Admin.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[] |
Admin.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[] |
Admin.enableTables(String regex)
Enable tables matching the passed in pattern and wait on completion.
|
HTableDescriptor |
ConnectionManager.HConnectionImplementation.getHTableDescriptor(byte[] tableName)
Deprecated.
Use
Admin.getTableDescriptor(TableName) instead |
HTableDescriptor |
ConnectionAdapter.getHTableDescriptor(byte[] tableName)
Deprecated.
|
HTableDescriptor |
HConnection.getHTableDescriptor(byte[] tableName)
Deprecated.
|
HTableDescriptor |
ConnectionManager.HConnectionImplementation.getHTableDescriptor(TableName tableName)
Deprecated.
Use
Admin.getTableDescriptor(TableName) instead |
HTableDescriptor |
ConnectionAdapter.getHTableDescriptor(TableName tableName)
Deprecated.
|
HTableDescriptor |
HConnection.getHTableDescriptor(TableName tableName)
Deprecated.
|
HTableDescriptor[] |
ConnectionManager.HConnectionImplementation.getHTableDescriptors(List<String> names)
Deprecated.
Use
Admin.getTableDescriptorsByTableName(List) instead |
HTableDescriptor[] |
ConnectionAdapter.getHTableDescriptors(List<String> tableNames)
Deprecated.
|
HTableDescriptor[] |
HConnection.getHTableDescriptors(List<String> tableNames)
Deprecated.
|
HTableDescriptor[] |
ConnectionManager.HConnectionImplementation.getHTableDescriptorsByTableName(List<TableName> tableNames)
Deprecated.
Use
Admin.getTableDescriptorsByTableName(List) instead |
HTableDescriptor[] |
ConnectionAdapter.getHTableDescriptorsByTableName(List<TableName> tableNames)
Deprecated.
|
HTableDescriptor[] |
HConnection.getHTableDescriptorsByTableName(List<TableName> tableNames)
Deprecated.
Use
Admin.getTableDescriptor(TableName) instead. |
HTableDescriptor |
HTable.getTableDescriptor()
Gets the
table descriptor for this table. |
HTableDescriptor |
Table.getTableDescriptor()
Gets the
table descriptor for this table. |
HTableDescriptor |
HTablePool.PooledHTable.getTableDescriptor() |
HTableDescriptor |
HTableWrapper.getTableDescriptor() |
HTableDescriptor |
HBaseAdmin.getTableDescriptor(byte[] tableName) |
HTableDescriptor |
HBaseAdmin.getTableDescriptor(TableName tableName)
Method for getting the tableDescriptor
|
HTableDescriptor |
Admin.getTableDescriptor(TableName tableName)
Method for getting the tableDescriptor
|
(package private) static HTableDescriptor |
HBaseAdmin.getTableDescriptor(TableName tableName,
HConnection connection,
RpcRetryingCallerFactory rpcCallerFactory,
RpcControllerFactory rpcControllerFactory,
int operationTimeout,
int rpcTimeout) |
private HTableDescriptor |
HBaseAdmin.getTableDescriptorByTableName(TableName tableName)
Get tableDescriptor
|
HTableDescriptor[] |
HBaseAdmin.getTableDescriptors(List<String> names)
Get tableDescriptors
|
HTableDescriptor[] |
Admin.getTableDescriptors(List<String> names)
Get tableDescriptors
|
HTableDescriptor[] |
HBaseAdmin.getTableDescriptorsByTableName(List<TableName> tableNames)
Get tableDescriptors
|
HTableDescriptor[] |
Admin.getTableDescriptorsByTableName(List<TableName> tableNames)
Get tableDescriptors
|
HTableDescriptor[] |
HBaseAdmin.listTableDescriptorsByNamespace(String name)
Get list of table descriptors by namespace
|
HTableDescriptor[] |
Admin.listTableDescriptorsByNamespace(String name)
Get list of table descriptors by namespace
|
HTableDescriptor[] |
ConnectionManager.HConnectionImplementation.listTables()
Deprecated.
Use
Admin.listTables() instead |
HTableDescriptor[] |
ConnectionAdapter.listTables()
Deprecated.
|
HTableDescriptor[] |
HBaseAdmin.listTables() |
HTableDescriptor[] |
HConnection.listTables()
Deprecated.
Use
Admin.listTables() instead. |
HTableDescriptor[] |
Admin.listTables()
List all the userspace tables.
|
HTableDescriptor[] |
HBaseAdmin.listTables(Pattern pattern) |
HTableDescriptor[] |
Admin.listTables(Pattern pattern)
List all the userspace tables matching the given pattern.
|
HTableDescriptor[] |
HBaseAdmin.listTables(Pattern pattern,
boolean includeSysTables) |
HTableDescriptor[] |
Admin.listTables(Pattern pattern,
boolean includeSysTables)
List all the tables matching the given pattern.
|
HTableDescriptor[] |
HBaseAdmin.listTables(String regex) |
HTableDescriptor[] |
Admin.listTables(String regex)
List all the userspace tables matching the given regular expression.
|
HTableDescriptor[] |
HBaseAdmin.listTables(String regex,
boolean includeSysTables) |
HTableDescriptor[] |
Admin.listTables(String regex,
boolean includeSysTables)
List all the tables matching the given pattern.
|
HTableDescriptor |
UnmodifyableHTableDescriptor.modifyFamily(HColumnDescriptor family) |
HTableDescriptor |
UnmodifyableHTableDescriptor.setMaxFileSize(long maxFileSize) |
HTableDescriptor |
UnmodifyableHTableDescriptor.setMemStoreFlushSize(long memstoreFlushSize) |
HTableDescriptor |
UnmodifyableHTableDescriptor.setReadOnly(boolean readOnly) |
HTableDescriptor |
UnmodifyableHTableDescriptor.setValue(byte[] key,
byte[] value) |
HTableDescriptor |
UnmodifyableHTableDescriptor.setValue(String key,
String value) |
Modifier and Type | Method and Description |
---|---|
void |
HBaseAdmin.createTable(HTableDescriptor desc)
Creates a new table.
|
void |
Admin.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 |
Admin.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 |
Admin.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 |
Admin.createTableAsync(HTableDescriptor desc,
byte[][] splitKeys)
Creates a new table but does not block and wait for it to come online.
|
private Future<Void> |
HBaseAdmin.createTableAsyncV2(HTableDescriptor desc,
byte[][] splitKeys)
Creates a new table but does not block and wait for it to come online.
|
private static HColumnDescriptor[] |
UnmodifyableHTableDescriptor.getUnmodifyableFamilies(HTableDescriptor desc) |
void |
HBaseAdmin.modifyTable(byte[] tableName,
HTableDescriptor htd) |
void |
HBaseAdmin.modifyTable(String tableName,
HTableDescriptor htd) |
void |
HBaseAdmin.modifyTable(TableName tableName,
HTableDescriptor htd)
Modify an existing table, more IRB friendly version.
|
void |
Admin.modifyTable(TableName tableName,
HTableDescriptor htd)
Modify an existing table, more IRB friendly version.
|
Constructor and Description |
---|
ClientSideRegionScanner(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir,
HTableDescriptor htd,
HRegionInfo hri,
Scan scan,
ScanMetrics scanMetrics) |
HBaseAdmin.CreateTableFuture(HBaseAdmin admin,
HTableDescriptor desc,
byte[][] splitKeys,
org.apache.hadoop.hbase.protobuf.generated.MasterProtos.CreateTableResponse response) |
UnmodifyableHTableDescriptor(HTableDescriptor desc) |
Modifier and Type | Method and Description |
---|---|
private boolean |
ReplicationAdmin.isTableRepEnabled(HTableDescriptor htd) |
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.
|
private static void |
Constraints.addConstraint(HTableDescriptor desc,
Class<? extends Constraint> clazz,
org.apache.hadoop.conf.Configuration conf,
long priority)
Write the raw constraint and configuration to the descriptor.
|
private static void |
Constraints.changeConstraintEnabled(HTableDescriptor desc,
Class<? extends Constraint> clazz,
boolean enabled)
Change the whether the constraint (if it is already present) is enabled or
disabled.
|
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.
|
(package private) static List<? extends Constraint> |
Constraints.getConstraints(HTableDescriptor desc,
ClassLoader classloader)
Get the constraints stored in the table descriptor
|
private static Pair<String,String> |
Constraints.getKeyValueForClass(HTableDescriptor desc,
Class<? extends Constraint> clazz)
Get the kv
Map.Entry in the descriptor for the specified class |
private static long |
Constraints.getNextPriority(HTableDescriptor desc) |
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. |
private static void |
Constraints.updateLatestPriority(HTableDescriptor desc,
long priority) |
private static void |
Constraints.writeConstraint(HTableDescriptor desc,
String key,
org.apache.hadoop.conf.Configuration conf)
Write the given key and associated configuration to the
HTableDescriptor |
Modifier and Type | Method and Description |
---|---|
void |
MasterObserver.postCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called after a snapshot clone operation has been requested.
|
void |
BaseMasterObserver.postCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
BaseMasterAndRegionObserver.postCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterObserver.postCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
Called after the createTable operation has been requested.
|
void |
BaseMasterObserver.postCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions) |
void |
BaseMasterAndRegionObserver.postCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions) |
void |
MasterObserver.postCreateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
Called after the createTable operation has been requested.
|
void |
BaseMasterObserver.postCreateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions) |
void |
BaseMasterAndRegionObserver.postCreateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions) |
void |
MasterObserver.postModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd)
Called after the modifyTable operation has been requested.
|
void |
BaseMasterObserver.postModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd) |
void |
BaseMasterAndRegionObserver.postModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd) |
void |
MasterObserver.postModifyTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd)
Called after to modifying a table's properties.
|
void |
BaseMasterObserver.postModifyTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd) |
void |
BaseMasterAndRegionObserver.postModifyTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd) |
void |
MasterObserver.postRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called after a snapshot restore operation has been requested.
|
void |
BaseMasterObserver.postRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
BaseMasterAndRegionObserver.postRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterObserver.postSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called after the snapshot operation has been requested.
|
void |
BaseMasterObserver.postSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
BaseMasterAndRegionObserver.postSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterObserver.preCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called before a snapshot is cloned.
|
void |
BaseMasterObserver.preCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
BaseMasterAndRegionObserver.preCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterObserver.preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
Called before a new table is created by
HMaster . |
void |
BaseMasterObserver.preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions) |
void |
BaseMasterAndRegionObserver.preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions) |
void |
MasterObserver.preCreateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions)
Called before a new table is created by
HMaster . |
void |
BaseMasterObserver.preCreateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions) |
void |
BaseMasterAndRegionObserver.preCreateTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
HTableDescriptor desc,
HRegionInfo[] regions) |
void |
MasterObserver.preModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd)
Called prior to modifying a table's properties.
|
void |
BaseMasterObserver.preModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd) |
void |
BaseMasterAndRegionObserver.preModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd) |
void |
MasterObserver.preModifyTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd)
Called prior to modifying a table's properties.
|
void |
BaseMasterObserver.preModifyTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd) |
void |
BaseMasterAndRegionObserver.preModifyTableHandler(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd) |
void |
MasterObserver.preRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called before a snapshot is restored.
|
void |
BaseMasterObserver.preRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
BaseMasterAndRegionObserver.preRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterObserver.preSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Called before a new snapshot is taken.
|
void |
BaseMasterObserver.preSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
BaseMasterAndRegionObserver.preSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
Constructor and Description |
---|
TableSnapshotInputFormat.TableSnapshotRegionSplit(HTableDescriptor htd,
HRegionInfo regionInfo,
List<String> locations,
Scan scan,
org.apache.hadoop.fs.Path restoreDir) |
Modifier and Type | Field and Description |
---|---|
private HTableDescriptor |
TableSnapshotInputFormatImpl.InputSplit.htd |
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
TableSnapshotInputFormatImpl.InputSplit.getHtd() |
HTableDescriptor |
TableSnapshotInputFormatImpl.InputSplit.getTableDescriptor() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
HFileOutputFormat2.configureBlockSize(HTableDescriptor tableDescriptor,
org.apache.hadoop.conf.Configuration conf)
Serialize column family to block size map to configuration.
|
(package private) static void |
HFileOutputFormat2.configureBloomType(HTableDescriptor tableDescriptor,
org.apache.hadoop.conf.Configuration conf)
Serialize column family to bloom type map to configuration.
|
(package private) static void |
HFileOutputFormat2.configureCompression(org.apache.hadoop.conf.Configuration conf,
HTableDescriptor tableDescriptor)
Serialize column family to compression algorithm map to configuration.
|
(package private) static void |
HFileOutputFormat2.configureDataBlockEncoding(HTableDescriptor tableDescriptor,
org.apache.hadoop.conf.Configuration conf)
Serialize column family to data block encoding map to configuration.
|
static void |
HFileOutputFormat2.configureIncrementalLoad(org.apache.hadoop.mapreduce.Job job,
HTableDescriptor tableDescriptor,
RegionLocator regionLocator)
Configure a MapReduce Job to perform an incremental load into the given
table.
|
(package private) static void |
HFileOutputFormat2.configureIncrementalLoad(org.apache.hadoop.mapreduce.Job job,
HTableDescriptor tableDescriptor,
RegionLocator regionLocator,
Class<? extends org.apache.hadoop.mapreduce.OutputFormat<?,?>> cls) |
Constructor and Description |
---|
TableSnapshotInputFormat.TableSnapshotRegionSplit(HTableDescriptor htd,
HRegionInfo regionInfo,
List<String> locations,
Scan scan,
org.apache.hadoop.fs.Path restoreDir) |
TableSnapshotInputFormatImpl.InputSplit(HTableDescriptor htd,
HRegionInfo regionInfo,
List<String> locations,
Scan scan,
org.apache.hadoop.fs.Path restoreDir) |
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
MasterFileSystem.addColumn(TableName tableName,
HColumnDescriptor hcd)
Add column to a table
|
HTableDescriptor |
MasterFileSystem.deleteColumn(TableName tableName,
byte[] familyName)
Delete column of a table
|
private HTableDescriptor |
CatalogJanitor.getTableDescriptor(TableName tableName) |
HTableDescriptor |
MasterFileSystem.modifyColumn(TableName tableName,
HColumnDescriptor hcd)
Modify Column of a table
|
Modifier and Type | Method and Description |
---|---|
List<HTableDescriptor> |
HMaster.listTableDescriptors(String namespace,
String regex,
List<TableName> tableNameList,
boolean includeSysTables)
Returns the list of table descriptors that match the specified request
|
List<HTableDescriptor> |
HMaster.listTableDescriptorsByNamespace(String name) |
List<HTableDescriptor> |
MasterServices.listTableDescriptorsByNamespace(String name)
Get list of table descriptors by namespace
|
Modifier and Type | Method and Description |
---|---|
private void |
HMaster.checkClassLoading(org.apache.hadoop.conf.Configuration conf,
HTableDescriptor htd) |
private void |
HMaster.checkCompactionPolicy(org.apache.hadoop.conf.Configuration conf,
HTableDescriptor htd) |
private void |
HMaster.checkCompression(HTableDescriptor htd) |
private void |
HMaster.checkEncryption(org.apache.hadoop.conf.Configuration conf,
HTableDescriptor htd) |
long |
HMaster.createTable(HTableDescriptor hTableDescriptor,
byte[][] splitKeys,
long nonceGroup,
long nonce) |
long |
MasterServices.createTable(HTableDescriptor desc,
byte[][] splitKeys,
long nonceGroup,
long nonce)
Create a table using the given table definition.
|
void |
HMaster.modifyTable(TableName tableName,
HTableDescriptor descriptor,
long nonceGroup,
long nonce) |
void |
MasterServices.modifyTable(TableName tableName,
HTableDescriptor descriptor,
long nonceGroup,
long nonce)
Modify the descriptor of an existing table
|
void |
MasterCoprocessorHost.postCloneSnapshot(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterCoprocessorHost.postCreateTable(HTableDescriptor htd,
HRegionInfo[] regions) |
void |
MasterCoprocessorHost.postCreateTableHandler(HTableDescriptor htd,
HRegionInfo[] regions) |
void |
MasterCoprocessorHost.postModifyTable(TableName tableName,
HTableDescriptor htd) |
void |
MasterCoprocessorHost.postModifyTableHandler(TableName tableName,
HTableDescriptor htd) |
void |
MasterCoprocessorHost.postRestoreSnapshot(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterCoprocessorHost.postSnapshot(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterCoprocessorHost.preCloneSnapshot(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterCoprocessorHost.preCreateTable(HTableDescriptor htd,
HRegionInfo[] regions) |
void |
MasterCoprocessorHost.preCreateTableHandler(HTableDescriptor htd,
HRegionInfo[] regions) |
void |
MasterCoprocessorHost.preModifyTable(TableName tableName,
HTableDescriptor htd) |
void |
MasterCoprocessorHost.preModifyTableHandler(TableName tableName,
HTableDescriptor htd) |
void |
MasterCoprocessorHost.preRestoreSnapshot(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
MasterCoprocessorHost.preSnapshot(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
private void |
HMaster.sanityCheckTableDescriptor(HTableDescriptor htd)
Checks whether the table conforms to some sane limits, and configured
values (compression, etc) work.
|
static void |
MasterFileSystem.setInfoFamilyCachingForMeta(HTableDescriptor metaDescriptor,
boolean b)
Enable in memory caching for hbase:meta
|
Modifier and Type | Method and Description |
---|---|
private static void |
HMaster.filterTablesByRegex(Collection<HTableDescriptor> descriptors,
Pattern pattern)
Removes the table descriptors that don't match the pattern.
|
void |
MasterCoprocessorHost.postGetTableDescriptors(List<HTableDescriptor> descriptors)
Deprecated.
|
void |
MasterCoprocessorHost.postGetTableDescriptors(List<TableName> tableNamesList,
List<HTableDescriptor> descriptors,
String regex) |
void |
MasterCoprocessorHost.postGetTableNames(List<HTableDescriptor> descriptors,
String regex) |
boolean |
MasterCoprocessorHost.preGetTableDescriptors(List<TableName> tableNamesList,
List<HTableDescriptor> descriptors)
Deprecated.
|
boolean |
MasterCoprocessorHost.preGetTableDescriptors(List<TableName> tableNamesList,
List<HTableDescriptor> descriptors,
String regex) |
boolean |
MasterCoprocessorHost.preGetTableNames(List<HTableDescriptor> descriptors,
String regex) |
Modifier and Type | Method and Description |
---|---|
protected HTableDescriptor |
RegionLocationFinder.getTableDescriptor(TableName tableName)
return HTableDescriptor for a given tableName
|
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.
|
Modifier and Type | Method and Description |
---|---|
protected List<HRegionInfo> |
CreateTableHandler.addReplicas(HTableDescriptor hTableDescriptor,
List<HRegionInfo> regions)
Create any replicas for the regions (the default replicas that was
already created is passed to the method)
|
(package private) byte[] |
TableEventHandler.hasColumnFamily(HTableDescriptor htd,
byte[] cf) |
Constructor and Description |
---|
CreateTableHandler(Server server,
MasterFileSystem fileSystemManager,
HTableDescriptor hTableDescriptor,
org.apache.hadoop.conf.Configuration conf,
HRegionInfo[] newRegions,
MasterServices masterServices) |
Modifier and Type | Field and Description |
---|---|
private HTableDescriptor |
TruncateTableProcedure.hTableDescriptor |
private HTableDescriptor |
CreateTableProcedure.hTableDescriptor |
private HTableDescriptor |
ModifyTableProcedure.modifiedHTableDescriptor |
private HTableDescriptor |
ModifyTableProcedure.unmodifiedHTableDescriptor |
private HTableDescriptor |
DeleteColumnFamilyProcedure.unmodifiedHTableDescriptor |
private HTableDescriptor |
AddColumnFamilyProcedure.unmodifiedHTableDescriptor |
private HTableDescriptor |
ModifyColumnFamilyProcedure.unmodifiedHTableDescriptor |
Modifier and Type | Method and Description |
---|---|
protected static void |
CreateTableProcedure.addRegionsToMeta(MasterProcedureEnv env,
HTableDescriptor hTableDescriptor,
List<HRegionInfo> regionInfos)
Add the specified set of regions to the hbase:meta table.
|
private static List<HRegionInfo> |
CreateTableProcedure.addReplicas(MasterProcedureEnv env,
HTableDescriptor hTableDescriptor,
List<HRegionInfo> regions)
Create any replicas for the regions (the default replicas that was
already created is passed to the method)
|
protected static List<HRegionInfo> |
CreateTableProcedure.addTableToMeta(MasterProcedureEnv env,
HTableDescriptor hTableDescriptor,
List<HRegionInfo> regions) |
protected static List<HRegionInfo> |
CreateTableProcedure.createFsLayout(MasterProcedureEnv env,
HTableDescriptor hTableDescriptor,
List<HRegionInfo> newRegions) |
protected static List<HRegionInfo> |
CreateTableProcedure.createFsLayout(MasterProcedureEnv env,
HTableDescriptor hTableDescriptor,
List<HRegionInfo> newRegions,
CreateTableProcedure.CreateHdfsRegions hdfsRegionHandler) |
private void |
ModifyTableProcedure.deleteFromFs(MasterProcedureEnv env,
HTableDescriptor oldHTableDescriptor,
HTableDescriptor newHTableDescriptor)
Removes from hdfs the families that are not longer present in the new table descriptor.
|
private void |
ModifyTableProcedure.updateReplicaColumnsIfNeeded(MasterProcedureEnv env,
HTableDescriptor oldHTableDescriptor,
HTableDescriptor newHTableDescriptor)
update replica column families if necessary.
|
Constructor and Description |
---|
CreateTableProcedure(MasterProcedureEnv env,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions) |
CreateTableProcedure(MasterProcedureEnv env,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions,
ProcedurePrepareLatch syncLatch) |
ModifyTableProcedure(MasterProcedureEnv env,
HTableDescriptor htd) |
Modifier and Type | Field and Description |
---|---|
private HTableDescriptor |
RestoreSnapshotHandler.hTableDescriptor |
protected HTableDescriptor |
TakeSnapshotHandler.htd |
Modifier and Type | Method and Description |
---|---|
private HTableDescriptor |
TakeSnapshotHandler.loadTableDescriptor() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
SnapshotManager.cloneSnapshot(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Clone the specified snapshot into a new table.
|
private void |
SnapshotManager.restoreSnapshot(org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor)
Restore the specified snapshot.
|
Constructor and Description |
---|
CloneSnapshotHandler(MasterServices masterServices,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
RestoreSnapshotHandler(MasterServices masterServices,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor htd) |
Modifier and Type | Method and Description |
---|---|
private static HTableDescriptor |
NamespaceUpgrade.readTableDescriptor(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.FileStatus status) |
Modifier and Type | Field and Description |
---|---|
static HTableDescriptor |
QuotaUtil.QUOTA_TABLE_DESC
Table descriptor for Quota internal table
|
Modifier and Type | Field and Description |
---|---|
private HTableDescriptor |
HRegion.htableDescriptor |
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
Region.getTableDesc() |
HTableDescriptor |
HRegion.getTableDesc() |
Modifier and Type | Method and Description |
---|---|
private void |
CompactionTool.CompactionWorker.compactRegion(org.apache.hadoop.fs.Path tableDir,
HTableDescriptor htd,
org.apache.hadoop.fs.Path regionDir,
boolean compactOnce,
boolean major) |
private void |
CompactionTool.CompactionWorker.compactStoreFiles(org.apache.hadoop.fs.Path tableDir,
HTableDescriptor htd,
HRegionInfo hri,
String familyName,
boolean compactOnce,
boolean major)
Execute the actual compaction job.
|
static HDFSBlocksDistribution |
HRegion.computeHDFSBlocksDistribution(org.apache.hadoop.conf.Configuration conf,
HTableDescriptor tableDescriptor,
HRegionInfo regionInfo)
This is a helper function to compute HDFS block distribution on demand
|
static HDFSBlocksDistribution |
HRegion.computeHDFSBlocksDistribution(org.apache.hadoop.conf.Configuration conf,
HTableDescriptor tableDescriptor,
HRegionInfo regionInfo,
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,
WAL wal) |
static HRegion |
HRegion.createHRegion(HRegionInfo info,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.conf.Configuration conf,
HTableDescriptor hTableDescriptor,
WAL wal,
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,
WAL wal,
boolean initialize,
boolean ignoreWAL)
Convenience method creating new HRegions.
|
static HRegion |
HRegion.createHRegion(HRegionInfo info,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.fs.Path tableDir,
org.apache.hadoop.conf.Configuration conf,
HTableDescriptor hTableDescriptor,
WAL wal,
boolean initialize,
boolean ignoreWAL)
Convenience method creating new HRegions.
|
static Class<? extends FlushPolicy> |
FlushPolicyFactory.getFlushPolicyClass(HTableDescriptor htd,
org.apache.hadoop.conf.Configuration conf)
Get FlushPolicy class for the given table.
|
static Class<? extends RegionSplitPolicy> |
RegionSplitPolicy.getSplitPolicyClass(HTableDescriptor htd,
org.apache.hadoop.conf.Configuration conf) |
private static HStore |
CompactionTool.CompactionWorker.getStore(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path tableDir,
HTableDescriptor htd,
HRegionInfo hri,
String familyName,
org.apache.hadoop.fs.Path tempDir)
Create a "mock" HStore that uses the tmpDir specified by the user and
the store dir to compact as source.
|
(package private) static List<RegionCoprocessorHost.TableCoprocessorAttribute> |
RegionCoprocessorHost.getTableCoprocessorAttrsFromSchema(org.apache.hadoop.conf.Configuration conf,
HTableDescriptor htd) |
boolean |
HRegionFileSystem.hasReferences(HTableDescriptor htd)
Check whether region has Reference file
|
(package private) static HRegion |
HRegion.newHRegion(org.apache.hadoop.fs.Path tableDir,
WAL wal,
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(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir,
HRegionInfo info,
HTableDescriptor htd,
WAL wal)
Open a Region.
|
static HRegion |
HRegion.openHRegion(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir,
HRegionInfo info,
HTableDescriptor htd,
WAL wal,
RegionServerServices rsServices,
CancelableProgressable reporter)
Open a Region.
|
static HRegion |
HRegion.openHRegion(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.fs.Path tableDir,
HRegionInfo info,
HTableDescriptor htd,
WAL wal,
RegionServerServices rsServices,
CancelableProgressable reporter)
Open a Region.
|
static HRegion |
HRegion.openHRegion(HRegionInfo info,
HTableDescriptor htd,
WAL wal,
org.apache.hadoop.conf.Configuration conf)
Open a Region.
|
static HRegion |
HRegion.openHRegion(HRegionInfo info,
HTableDescriptor htd,
WAL wal,
org.apache.hadoop.conf.Configuration conf,
RegionServerServices rsServices,
CancelableProgressable reporter)
Open a Region.
|
static HRegion |
HRegion.openHRegion(org.apache.hadoop.fs.Path rootDir,
HRegionInfo info,
HTableDescriptor htd,
WAL wal,
org.apache.hadoop.conf.Configuration conf)
Open a Region.
|
static HRegion |
HRegion.openHRegion(org.apache.hadoop.fs.Path rootDir,
HRegionInfo info,
HTableDescriptor htd,
WAL wal,
org.apache.hadoop.conf.Configuration conf,
RegionServerServices rsServices,
CancelableProgressable reporter)
Open a Region.
|
static void |
RegionCoprocessorHost.testTableCoprocessorAttrs(org.apache.hadoop.conf.Configuration conf,
HTableDescriptor htd)
Sanity check the table coprocessor attributes of the supplied schema.
|
static void |
HRegion.warmupHRegion(HRegionInfo info,
HTableDescriptor htd,
WAL wal,
org.apache.hadoop.conf.Configuration conf,
RegionServerServices rsServices,
CancelableProgressable reporter) |
Constructor and Description |
---|
HRegion(HRegionFileSystem fs,
WAL wal,
org.apache.hadoop.conf.Configuration confParam,
HTableDescriptor htd,
RegionServerServices rsServices)
HRegion constructor.
|
HRegion(org.apache.hadoop.fs.Path tableDir,
WAL wal,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration confParam,
HRegionInfo regionInfo,
HTableDescriptor htd,
RegionServerServices rsServices)
Deprecated.
Use other constructors.
|
Modifier and Type | Field and Description |
---|---|
private HTableDescriptor |
OpenRegionHandler.htd |
Constructor and Description |
---|
OpenMetaHandler(Server server,
RegionServerServices rsServices,
HRegionInfo regionInfo,
HTableDescriptor htd,
long masterSystemTime,
OpenRegionCoordination coordination,
OpenRegionCoordination.OpenRegionDetails ord) |
OpenRegionHandler(Server server,
RegionServerServices rsServices,
HRegionInfo regionInfo,
HTableDescriptor htd,
EventType eventType,
long masterSystemTime,
OpenRegionCoordination coordination,
OpenRegionCoordination.OpenRegionDetails ord) |
OpenRegionHandler(Server server,
RegionServerServices rsServices,
HRegionInfo regionInfo,
HTableDescriptor htd,
long masterSystemTime,
OpenRegionCoordination coordination,
OpenRegionCoordination.OpenRegionDetails ord) |
Modifier and Type | Field and Description |
---|---|
private HTableDescriptor |
FSWALEntry.htd |
Modifier and Type | Method and Description |
---|---|
(package private) HTableDescriptor |
FSWALEntry.getHTableDescriptor() |
Modifier and Type | Method and Description |
---|---|
long |
FSHLog.append(HTableDescriptor htd,
HRegionInfo hri,
WALKey key,
WALEdit edits,
boolean inMemstore) |
void |
WALActionsListener.visitLogEntryBeforeWrite(HTableDescriptor htd,
WALKey logKey,
WALEdit logEdit) |
void |
WALActionsListener.Base.visitLogEntryBeforeWrite(HTableDescriptor htd,
WALKey logKey,
WALEdit logEdit) |
static long |
WALUtil.writeBulkLoadMarkerAndSync(WAL wal,
HTableDescriptor htd,
HRegionInfo hri,
org.apache.hadoop.hbase.protobuf.generated.WALProtos.BulkLoadDescriptor desc,
MultiVersionConcurrencyControl mvcc)
Write a log marker that a bulk load has succeeded and is about to be committed.
|
static long |
WALUtil.writeCompactionMarker(WAL wal,
HTableDescriptor htd,
HRegionInfo hri,
org.apache.hadoop.hbase.protobuf.generated.WALProtos.CompactionDescriptor c,
MultiVersionConcurrencyControl mvcc)
Write the marker that a compaction has succeeded and is about to be committed.
|
static long |
WALUtil.writeFlushMarker(WAL wal,
HTableDescriptor htd,
HRegionInfo hri,
org.apache.hadoop.hbase.protobuf.generated.WALProtos.FlushDescriptor f,
boolean sync,
MultiVersionConcurrencyControl mvcc)
Write a flush marker indicating a start / abort or a complete of a region flush
|
private static long |
WALUtil.writeMarker(WAL wal,
HTableDescriptor htd,
HRegionInfo hri,
WALEdit edit,
MultiVersionConcurrencyControl mvcc,
boolean sync) |
static long |
WALUtil.writeRegionEventMarker(WAL wal,
HTableDescriptor htd,
HRegionInfo hri,
org.apache.hadoop.hbase.protobuf.generated.WALProtos.RegionEventDescriptor r,
MultiVersionConcurrencyControl mvcc)
Write a region open marker indicating that the region is opened
|
Constructor and Description |
---|
FSWALEntry(long sequence,
WALKey key,
WALEdit edit,
HTableDescriptor htd,
HRegionInfo hri,
boolean inMemstore) |
Modifier and Type | Method and Description |
---|---|
static void |
Replication.scopeWALEdits(HTableDescriptor htd,
WALKey logKey,
WALEdit logEdit)
Utility method used to set the correct scopes on each log key.
|
void |
Replication.visitLogEntryBeforeWrite(HTableDescriptor htd,
WALKey logKey,
WALEdit logEdit) |
Modifier and Type | Method and Description |
---|---|
private HTableDescriptor |
SchemaResource.getTableSchema() |
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 | Method and Description |
---|---|
(package private) static boolean |
AccessControlLists.isAclTable(HTableDescriptor desc)
Returns
true if the given table is _acl_ metadata table. |
void |
AccessController.postCreateTableHandler(ObserverContext<MasterCoprocessorEnvironment> c,
HTableDescriptor desc,
HRegionInfo[] regions) |
void |
AccessController.postModifyTable(ObserverContext<MasterCoprocessorEnvironment> c,
TableName tableName,
HTableDescriptor htd) |
void |
AccessController.preCloneSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
AccessController.preCreateTable(ObserverContext<MasterCoprocessorEnvironment> c,
HTableDescriptor desc,
HRegionInfo[] regions) |
void |
AccessController.preModifyTable(ObserverContext<MasterCoprocessorEnvironment> c,
TableName tableName,
HTableDescriptor htd) |
void |
AccessController.preRestoreSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
void |
AccessController.preSnapshot(ObserverContext<MasterCoprocessorEnvironment> ctx,
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.SnapshotDescription snapshot,
HTableDescriptor hTableDescriptor) |
Modifier and Type | Method and Description |
---|---|
void |
AccessController.postGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<TableName> tableNamesList,
List<HTableDescriptor> descriptors,
String regex) |
void |
AccessController.postGetTableNames(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<HTableDescriptor> descriptors,
String regex) |
void |
AccessController.preGetTableDescriptors(ObserverContext<MasterCoprocessorEnvironment> ctx,
List<TableName> tableNamesList,
List<HTableDescriptor> descriptors,
String regex) |
Modifier and Type | Method and Description |
---|---|
void |
VisibilityController.preModifyTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
TableName tableName,
HTableDescriptor htd) |
Modifier and Type | Field and Description |
---|---|
private HTableDescriptor |
SnapshotManifest.htd |
private HTableDescriptor |
RestoreSnapshotHelper.RestoreMetaChanges.htd |
private HTableDescriptor |
RestoreSnapshotHelper.tableDesc |
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
SnapshotManifest.getTableDescriptor()
Get the table descriptor from the Snapshot
|
HTableDescriptor |
RestoreSnapshotHelper.RestoreMetaChanges.getTableDescriptor() |
Modifier and Type | Method and Description |
---|---|
void |
SnapshotManifest.addTableDescriptor(HTableDescriptor htd)
Add the table descriptor to the snapshot manifest
|
Constructor and Description |
---|
RestoreSnapshotHelper.RestoreMetaChanges(HTableDescriptor htd,
Map<String,Pair<String,String>> parentsMap) |
RestoreSnapshotHelper(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
SnapshotManifest manifest,
HTableDescriptor tableDescriptor,
org.apache.hadoop.fs.Path rootDir,
ForeignExceptionDispatcher monitor,
MonitoredTask status) |
RestoreSnapshotHelper(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.FileSystem fs,
SnapshotManifest manifest,
HTableDescriptor tableDescriptor,
org.apache.hadoop.fs.Path rootDir,
ForeignExceptionDispatcher monitor,
MonitoredTask status,
boolean createBackRefs) |
Modifier and Type | Method and Description |
---|---|
private static List<Future<Void>> |
Canary.sniff(Admin admin,
Canary.Sink sink,
HTableDescriptor tableDesc,
ExecutorService executor,
Canary.RegionTask.TaskType taskType) |
Modifier and Type | Field and Description |
---|---|
protected HTableDescriptor |
HMerge.Merger.htd |
private HTableDescriptor |
FSTableDescriptors.metaTableDescriptor
Table descriptor for
hbase:meta catalog table |
Modifier and Type | Field and Description |
---|---|
private Map<TableName,HTableDescriptor> |
FSTableDescriptors.cache |
(package private) Set<HTableDescriptor> |
HBaseFsck.TableInfo.htds |
Modifier and Type | Method and Description |
---|---|
HTableDescriptor |
FSTableDescriptors.get(TableName tablename)
Get the current table descriptor for the given table, or null if none exists.
|
(package private) HTableDescriptor[] |
HBaseFsck.getHTableDescriptors(List<TableName> tableNames) |
private HTableDescriptor |
HBaseFsck.TableInfo.getHTD() |
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 tableDir,
boolean rewritePb)
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,
TableName tableName)
Returns the latest table descriptor for the given table directly from the file system
if it exists, bypassing the local cache.
|
static HTableDescriptor |
FSTableDescriptors.getTableDescriptorFromFs(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path hbaseRootDir,
TableName tableName,
boolean rewritePb)
Returns the latest table descriptor for the table located at the given directory
directly from the file system if it exists.
|
(package private) HTableDescriptor[] |
HBaseFsck.getTables(AtomicInteger numSkipped)
Return a list of user-space table names whose metadata have not been
modified in the last few milliseconds specified by timelag
if any of the REGIONINFO_QUALIFIER, SERVER_QUALIFIER, STARTCODE_QUALIFIER,
SPLITA_QUALIFIER, SPLITB_QUALIFIER have not changed in the last
milliseconds specified by timelag, then the table is a candidate to be returned.
|
private static HTableDescriptor |
FSTableDescriptors.readTableDescriptor(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.FileStatus status,
boolean rewritePb) |
HTableDescriptor |
FSTableDescriptors.remove(TableName tablename)
Removes the table descriptor from the local cache and returns it.
|
Modifier and Type | Method and Description |
---|---|
Map<String,HTableDescriptor> |
FSTableDescriptors.getAll()
Returns a map from table name to table descriptor for all tables.
|
Map<String,HTableDescriptor> |
FSTableDescriptors.getByNamespace(String name) |
Modifier and Type | Method and Description |
---|---|
void |
FSTableDescriptors.add(HTableDescriptor htd)
Adds (or updates) the table descriptor to the FileSystem
and updates the local cache with it.
|
static HRegion |
HBaseFsckRepair.createHDFSRegionDir(org.apache.hadoop.conf.Configuration conf,
HRegionInfo hri,
HTableDescriptor htd)
Creates, flushes, and closes a new region.
|
static HRegionInfo[] |
ModifyRegionUtils.createHRegionInfos(HTableDescriptor hTableDescriptor,
byte[][] splitKeys) |
static HRegionInfo |
ModifyRegionUtils.createRegion(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.fs.Path tableDir,
HTableDescriptor hTableDescriptor,
HRegionInfo newRegion,
ModifyRegionUtils.RegionFillTask task)
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)
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 List<HRegionInfo> |
ModifyRegionUtils.createRegions(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.fs.Path tableDir,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions,
ModifyRegionUtils.RegionFillTask task)
Create new set of regions on the specified file-system.
|
static List<HRegionInfo> |
ModifyRegionUtils.createRegions(ThreadPoolExecutor exec,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path rootDir,
org.apache.hadoop.fs.Path tableDir,
HTableDescriptor hTableDescriptor,
HRegionInfo[] newRegions,
ModifyRegionUtils.RegionFillTask task)
Create new set of regions on the specified file-system.
|
boolean |
FSTableDescriptors.createTableDescriptor(HTableDescriptor htd)
Create new HTableDescriptor in HDFS.
|
boolean |
FSTableDescriptors.createTableDescriptor(HTableDescriptor htd,
boolean forceCreation)
Create new HTableDescriptor in HDFS.
|
boolean |
FSTableDescriptors.createTableDescriptorForTableDirectory(org.apache.hadoop.fs.Path tableDir,
HTableDescriptor htd,
boolean forceCreation)
Create a new HTableDescriptor in HDFS in the specified table directory.
|
private HRegion |
Merge.merge(HTableDescriptor htd,
HRegion meta,
HRegionInfo info1,
HRegionInfo info2) |
private static void |
FSTableDescriptors.rewriteTableDescriptor(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.FileStatus status,
HTableDescriptor td) |
(package private) org.apache.hadoop.fs.Path |
FSTableDescriptors.updateTableDescriptor(HTableDescriptor htd)
Update table descriptor on the file system
|
private static void |
FSTableDescriptors.writeHTD(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path p,
HTableDescriptor htd) |
private static org.apache.hadoop.fs.Path |
FSTableDescriptors.writeTableDescriptor(org.apache.hadoop.fs.FileSystem fs,
HTableDescriptor htd,
org.apache.hadoop.fs.Path tableDir,
org.apache.hadoop.fs.FileStatus currentDescriptorFile)
Attempts to write a new table descriptor to the given table's directory.
|
Modifier and Type | Method and Description |
---|---|
long |
WAL.append(HTableDescriptor htd,
HRegionInfo info,
WALKey key,
WALEdit edits,
boolean inMemstore)
Append a set of edits to the WAL.
|
long |
DisabledWALProvider.DisabledWAL.append(HTableDescriptor htd,
HRegionInfo info,
WALKey key,
WALEdit edits,
boolean inMemstore) |
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.