@InterfaceAudience.Private public class AsyncMetaTableAccessor extends Object
hbase:meta.| Constructor and Description |
|---|
AsyncMetaTableAccessor() |
| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<Pair<HRegionInfo,ServerName>> |
getRegion(RawAsyncTable metaTable,
byte[] regionName) |
static CompletableFuture<List<Pair<HRegionInfo,ServerName>>> |
getTableRegionsAndLocations(RawAsyncTable metaTable,
Optional<TableName> tableName)
Used to get table regions' info and server.
|
static CompletableFuture<List<Pair<HRegionInfo,ServerName>>> |
getTableRegionsAndLocations(RawAsyncTable metaTable,
Optional<TableName> tableName,
boolean excludeOfflinedSplitParents)
Used to get table regions' info and server.
|
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<Pair<HRegionInfo,ServerName>> getRegion(RawAsyncTable metaTable, byte[] regionName)
public static CompletableFuture<List<Pair<HRegionInfo,ServerName>>> getTableRegionsAndLocations(RawAsyncTable metaTable, Optional<TableName> tableName)
metaTable - tableName - table we're looking for, can be null for getting all regionsCompletableFuture.public static CompletableFuture<List<Pair<HRegionInfo,ServerName>>> getTableRegionsAndLocations(RawAsyncTable metaTable, Optional<TableName> tableName, boolean excludeOfflinedSplitParents)
metaTable - tableName - table we're looking for, can be null for getting all regionsexcludeOfflinedSplitParents - don't return split parentsCompletableFuture.Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.