org.apache.accumulo.core.metadata
Class MetadataLocationObtainer
java.lang.Object
org.apache.accumulo.core.metadata.MetadataLocationObtainer
- All Implemented Interfaces:
- TabletLocatorImpl.TabletLocationObtainer
public class MetadataLocationObtainer
- extends Object
- implements TabletLocatorImpl.TabletLocationObtainer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetadataLocationObtainer
public MetadataLocationObtainer(Instance instance)
lookupTablet
public TabletLocator.TabletLocations lookupTablet(Credentials credentials,
TabletLocator.TabletLocation src,
org.apache.hadoop.io.Text row,
org.apache.hadoop.io.Text stopRow,
TabletLocator parent)
throws AccumuloSecurityException,
AccumuloException
- Specified by:
lookupTablet
in interface TabletLocatorImpl.TabletLocationObtainer
- Returns:
- null when unable to read information successfully
- Throws:
AccumuloSecurityException
AccumuloException
lookupTablets
public List<TabletLocator.TabletLocation> lookupTablets(Credentials credentials,
String tserver,
Map<KeyExtent,List<Range>> tabletsRanges,
TabletLocator parent)
throws AccumuloSecurityException,
AccumuloException
- Specified by:
lookupTablets
in interface TabletLocatorImpl.TabletLocationObtainer
- Throws:
AccumuloSecurityException
AccumuloException
getMetadataLocationEntries
public static TabletLocator.TabletLocations getMetadataLocationEntries(SortedMap<Key,Value> entries)
Copyright © 2015 Apache Accumulo Project. All rights reserved.