org.apache.accumulo.core.client.impl
Class TabletLocator

java.lang.Object
  extended by org.apache.accumulo.core.client.impl.TabletLocator
Direct Known Subclasses:
MockTabletLocator, RootTabletLocator, TabletLocatorImpl, TimeoutTabletLocator

public abstract class TabletLocator
extends Object


Nested Class Summary
static class TabletLocator.TabletLocation
           
static class TabletLocator.TabletLocations
           
static class TabletLocator.TabletServerMutations<T extends Mutation>
           
 
Constructor Summary
TabletLocator()
           
 
Method Summary
abstract
<T extends Mutation>
void
binMutations(Credentials credentials, List<T> mutations, Map<String,TabletLocator.TabletServerMutations<T>> binnedMutations, List<T> failures)
           
abstract  List<Range> binRanges(Credentials credentials, List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges)
           
static void clearLocators()
           
static TabletLocator getLocator(Instance instance, org.apache.hadoop.io.Text tableId)
           
abstract  void invalidateCache()
          Invalidate entire cache
abstract  void invalidateCache(Collection<KeyExtent> keySet)
           
abstract  void invalidateCache(KeyExtent failedExtent)
           
abstract  void invalidateCache(String server)
          Invalidate all metadata entries that point to server
abstract  TabletLocator.TabletLocation locateTablet(Credentials credentials, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabletLocator

public TabletLocator()
Method Detail

locateTablet

public abstract TabletLocator.TabletLocation locateTablet(Credentials credentials,
                                                          org.apache.hadoop.io.Text row,
                                                          boolean skipRow,
                                                          boolean retry)
                                                   throws AccumuloException,
                                                          AccumuloSecurityException,
                                                          TableNotFoundException
Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException

binMutations

public abstract <T extends Mutation> void binMutations(Credentials credentials,
                                                       List<T> mutations,
                                                       Map<String,TabletLocator.TabletServerMutations<T>> binnedMutations,
                                                       List<T> failures)
                           throws AccumuloException,
                                  AccumuloSecurityException,
                                  TableNotFoundException
Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException

binRanges

public abstract List<Range> binRanges(Credentials credentials,
                                      List<Range> ranges,
                                      Map<String,Map<KeyExtent,List<Range>>> binnedRanges)
                               throws AccumuloException,
                                      AccumuloSecurityException,
                                      TableNotFoundException
Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException

invalidateCache

public abstract void invalidateCache(KeyExtent failedExtent)

invalidateCache

public abstract void invalidateCache(Collection<KeyExtent> keySet)

invalidateCache

public abstract void invalidateCache()
Invalidate entire cache


invalidateCache

public abstract void invalidateCache(String server)
Invalidate all metadata entries that point to server


clearLocators

public static void clearLocators()

getLocator

public static TabletLocator getLocator(Instance instance,
                                       org.apache.hadoop.io.Text tableId)


Copyright © 2015 Apache Accumulo Project. All rights reserved.