@InterfaceAudience.Private public final class ClientMetaTableAccessor extends Object
hbase:meta
.CatalogFamilyFormat
Modifier and Type | Class and Description |
---|---|
static interface |
ClientMetaTableAccessor.CloseableVisitor
Implementations 'visit' a catalog table row but with close() at the end.
|
static class |
ClientMetaTableAccessor.QueryType |
static interface |
ClientMetaTableAccessor.Visitor
Implementations 'visit' a catalog table row.
|
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)
metaTable
- regionName
- region we're looking forpublic static CompletableFuture<Optional<HRegionLocation>> getRegionLocationWithEncodedName(AsyncTable<?> metaTable, byte[] encodedRegionName)
metaTable
- encodedRegionName
- region we're looking forpublic static CompletableFuture<List<HRegionLocation>> getTableHRegionLocations(AsyncTable<AdvancedScanResultConsumer> metaTable, TableName tableName)
metaTable
- tableName
- table we're looking for, can be null for getting all regionsCompletableFuture
.public static byte[] getTableStartRowForMeta(TableName tableName, ClientMetaTableAccessor.QueryType type)
tableName
- table we're working withpublic static byte[] getTableStopRowForMeta(TableName tableName, ClientMetaTableAccessor.QueryType type)
tableName
- table we're working withCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.