org.apache.accumulo.core.metadata
public abstract class MetadataServicer extends Object
Constructor and Description |
---|
MetadataServicer() |
Modifier and Type | Method and Description |
---|---|
static MetadataServicer |
forTableId(Instance instance,
Credentials credentials,
String tableId) |
static MetadataServicer |
forTableName(Instance instance,
Credentials credentials,
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(Instance instance, Credentials credentials, String tableName) throws AccumuloException, AccumuloSecurityException
public static MetadataServicer forTableId(Instance instance, Credentials credentials, 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–2015 The Apache Software Foundation. All rights reserved.