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