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

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)
           
abstract  List<Range> binRanges(List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges)
           
static TabletLocator getInstance(Instance instance, AuthInfo credentials, 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)
           
 
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)
                                                   throws AccumuloException,
                                                          AccumuloSecurityException,
                                                          TableNotFoundException
Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException

binMutations

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

binRanges

public abstract List<Range> binRanges(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


getInstance

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


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.