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

java.lang.Object
  extended by org.apache.accumulo.core.client.impl.TabletLocator
      extended by org.apache.accumulo.core.client.impl.TabletLocatorImpl

public class TabletLocatorImpl
extends TabletLocator


Nested Class Summary
static interface TabletLocatorImpl.TabletLocationObtainer
           
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.client.impl.TabletLocator
TabletLocator.TabletLocation, TabletLocator.TabletLocations, TabletLocator.TabletServerMutations
 
Field Summary
protected  org.apache.hadoop.io.Text lastTabletRow
           
protected  TabletLocatorImpl.TabletLocationObtainer locationObtainer
           
protected  TreeMap<org.apache.hadoop.io.Text,TabletLocator.TabletLocation> metaCache
           
protected  TabletLocator parent
           
protected  org.apache.hadoop.io.Text tableId
           
 
Constructor Summary
TabletLocatorImpl(org.apache.hadoop.io.Text table, TabletLocator parent, TabletLocatorImpl.TabletLocationObtainer tlo)
           
 
Method Summary
protected  TabletLocator.TabletLocation _locateTablet(org.apache.hadoop.io.Text row, boolean skipRow, boolean retry, boolean lock, TCredentials credentials)
           
protected static void addRange(Map<String,Map<KeyExtent,List<Range>>> binnedRanges, String location, KeyExtent ke, Range range)
           
 void binMutations(List<Mutation> mutations, Map<String,TabletLocator.TabletServerMutations> binnedMutations, List<Mutation> failures, TCredentials credentials)
           
 List<Range> binRanges(List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges, TCredentials credentials)
           
 void invalidateCache()
          Invalidate entire cache
 void invalidateCache(Collection<KeyExtent> keySet)
           
 void invalidateCache(KeyExtent failedExtent)
           
 void invalidateCache(String server)
          Invalidate all metadata entries that point to server
 TabletLocator.TabletLocation locateTablet(org.apache.hadoop.io.Text row, boolean skipRow, boolean retry, TCredentials credentials)
           
 
Methods inherited from class org.apache.accumulo.core.client.impl.TabletLocator
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableId

protected org.apache.hadoop.io.Text tableId

parent

protected TabletLocator parent

metaCache

protected TreeMap<org.apache.hadoop.io.Text,TabletLocator.TabletLocation> metaCache

locationObtainer

protected TabletLocatorImpl.TabletLocationObtainer locationObtainer

lastTabletRow

protected org.apache.hadoop.io.Text lastTabletRow
Constructor Detail

TabletLocatorImpl

public TabletLocatorImpl(org.apache.hadoop.io.Text table,
                         TabletLocator parent,
                         TabletLocatorImpl.TabletLocationObtainer tlo)
Method Detail

binMutations

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

binRanges

public List<Range> binRanges(List<Range> ranges,
                             Map<String,Map<KeyExtent,List<Range>>> binnedRanges,
                             TCredentials credentials)
                      throws AccumuloException,
                             AccumuloSecurityException,
                             TableNotFoundException
Specified by:
binRanges in class TabletLocator
Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException

invalidateCache

public void invalidateCache(KeyExtent failedExtent)
Specified by:
invalidateCache in class TabletLocator

invalidateCache

public void invalidateCache(Collection<KeyExtent> keySet)
Specified by:
invalidateCache in class TabletLocator

invalidateCache

public void invalidateCache(String server)
Description copied from class: TabletLocator
Invalidate all metadata entries that point to server

Specified by:
invalidateCache in class TabletLocator

invalidateCache

public void invalidateCache()
Description copied from class: TabletLocator
Invalidate entire cache

Specified by:
invalidateCache in class TabletLocator

locateTablet

public TabletLocator.TabletLocation locateTablet(org.apache.hadoop.io.Text row,
                                                 boolean skipRow,
                                                 boolean retry,
                                                 TCredentials credentials)
                                          throws AccumuloException,
                                                 AccumuloSecurityException,
                                                 TableNotFoundException
Specified by:
locateTablet in class TabletLocator
Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException

_locateTablet

protected TabletLocator.TabletLocation _locateTablet(org.apache.hadoop.io.Text row,
                                                     boolean skipRow,
                                                     boolean retry,
                                                     boolean lock,
                                                     TCredentials credentials)
                                              throws AccumuloException,
                                                     AccumuloSecurityException,
                                                     TableNotFoundException
Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException

addRange

protected static void addRange(Map<String,Map<KeyExtent,List<Range>>> binnedRanges,
                               String location,
                               KeyExtent ke,
                               Range range)


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.