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
           
 
Constructor Summary
TabletLocator()
           
 
Method Summary
abstract  void binMutations(List<Mutation> mutations, Map<String,TabletLocator.TabletServerMutations> binnedMutations, List<Mutation> failures, TCredentials credentials)
           
abstract  List<Range> binRanges(List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges, TCredentials credentials)
           
static TabletLocator getInstance(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(org.apache.hadoop.io.Text row, boolean skipRow, boolean retry, TCredentials credentials)
           
 
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(org.apache.hadoop.io.Text row,
                                                          boolean skipRow,
                                                          boolean retry,
                                                          TCredentials credentials)
                                                   throws AccumuloException,
                                                          AccumuloSecurityException,
                                                          TableNotFoundException
Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException

binMutations

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

binRanges

public abstract List<Range> binRanges(List<Range> ranges,
                                      Map<String,Map<KeyExtent,List<Range>>> binnedRanges,
                                      TCredentials credentials)
                               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


getInstance

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


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.