@InterfaceAudience.Private public class AsyncMetaTableAccessor extends Object
hbase:meta
.Constructor and Description |
---|
AsyncMetaTableAccessor() |
Modifier and Type | Method and Description |
---|---|
static CompletableFuture<Optional<HRegionLocation>> |
getRegionLocation(AsyncTable<?> metaTable,
byte[] regionName)
Returns the HRegionLocation from meta for the given region n * @param regionName region we're
looking for
|
static CompletableFuture<Optional<HRegionLocation>> |
getRegionLocationWithEncodedName(AsyncTable<?> metaTable,
byte[] encodedRegionName)
Returns the HRegionLocation from meta for the given encoded region name n * @param
encodedRegionName region we're looking for
|
static CompletableFuture<List<HRegionLocation>> |
getTableHRegionLocations(AsyncTable<AdvancedScanResultConsumer> metaTable,
TableName tableName)
Used to get all region locations for the specific table.
|
static CompletableFuture<Optional<TableState>> |
getTableState(AsyncTable<?> metaTable,
TableName tableName) |
static CompletableFuture<Boolean> |
tableExists(AsyncTable<?> metaTable,
TableName tableName) |
public static CompletableFuture<Boolean> tableExists(AsyncTable<?> metaTable, TableName tableName)
public static CompletableFuture<Optional<TableState>> getTableState(AsyncTable<?> metaTable, TableName tableName)
public static CompletableFuture<Optional<HRegionLocation>> getRegionLocation(AsyncTable<?> metaTable, byte[] regionName)
public static CompletableFuture<Optional<HRegionLocation>> getRegionLocationWithEncodedName(AsyncTable<?> metaTable, byte[] encodedRegionName)
public static CompletableFuture<List<HRegionLocation>> getTableHRegionLocations(AsyncTable<AdvancedScanResultConsumer> metaTable, TableName tableName)
CompletableFuture
.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.