public abstract class MetadataServicer extends Object
Constructor and Description |
---|
MetadataServicer() |
Modifier and Type | Method and Description |
---|---|
static MetadataServicer |
forTableId(ClientContext context,
Table.ID tableId) |
static MetadataServicer |
forTableName(ClientContext context,
String tableName) |
abstract Table.ID |
getServicedTableId() |
abstract void |
getTabletLocations(SortedMap<KeyExtent,String> tablets)
Populate the provided data structure with the known tablets for the table being serviced
|
public static MetadataServicer forTableName(ClientContext context, String tableName) throws AccumuloException, AccumuloSecurityException
public static MetadataServicer forTableId(ClientContext context, Table.ID tableId)
public abstract Table.ID getServicedTableId()
public abstract void getTabletLocations(SortedMap<KeyExtent,String> tablets) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
tablets
- A mapping of all known tablets to their location (if available, null otherwise)AccumuloException
AccumuloSecurityException
TableNotFoundException
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.