org.apache.accumulo.core.metadata
Class MetadataLocationObtainer

java.lang.Object
  extended by org.apache.accumulo.core.metadata.MetadataLocationObtainer
All Implemented Interfaces:
TabletLocatorImpl.TabletLocationObtainer

public class MetadataLocationObtainer
extends Object
implements TabletLocatorImpl.TabletLocationObtainer


Constructor Summary
MetadataLocationObtainer(Instance instance)
           
 
Method Summary
static TabletLocator.TabletLocations getMetadataLocationEntries(SortedMap<Key,Value> entries)
           
 TabletLocator.TabletLocations lookupTablet(Credentials credentials, TabletLocator.TabletLocation src, org.apache.hadoop.io.Text row, org.apache.hadoop.io.Text stopRow, TabletLocator parent)
           
 List<TabletLocator.TabletLocation> lookupTablets(Credentials credentials, String tserver, Map<KeyExtent,List<Range>> tabletsRanges, TabletLocator parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataLocationObtainer

public MetadataLocationObtainer(Instance instance)
Method Detail

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.