Class MetadataServicer
- java.lang.Object
-
- org.apache.accumulo.core.metadata.MetadataServicer
-
public abstract class MetadataServicer extends Object
Provides a consolidated API for handling table metadata
-
-
Constructor Summary
Constructors Constructor Description MetadataServicer()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static MetadataServicer
forTableId(ClientContext context, TableId tableId)
static MetadataServicer
forTableName(ClientContext context, String tableName)
abstract TableId
getServicedTableId()
abstract void
getTabletLocations(SortedMap<KeyExtent,String> tablets)
Populate the provided data structure with the known tablets for the table being serviced
-
-
-
Method Detail
-
forTableName
public static MetadataServicer forTableName(ClientContext context, String tableName) throws AccumuloException, AccumuloSecurityException
-
forTableId
public static MetadataServicer forTableId(ClientContext context, TableId tableId)
-
getServicedTableId
public abstract TableId getServicedTableId()
- Returns:
- the table id of the table currently being serviced
-
getTabletLocations
public abstract void getTabletLocations(SortedMap<KeyExtent,String> tablets) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
Populate the provided data structure with the known tablets for the table being serviced- Parameters:
tablets
- A mapping of all known tablets to their location (if available, null otherwise)- Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException
-
-