public abstract class MetadataServicer extends Object
Constructor and Description |
---|
MetadataServicer() |
Modifier and Type | Method and Description |
---|---|
static MetadataServicer |
forTableId(ClientContext context,
String tableId) |
static MetadataServicer |
forTableName(ClientContext context,
String tableName) |
abstract String |
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, String tableId)
public abstract String 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–2017 The Apache Software Foundation. All rights reserved.