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

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

public class RootTabletLocator
extends TabletLocator


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.client.impl.TabletLocator
TabletLocator.TabletLocation, TabletLocator.TabletLocations, TabletLocator.TabletServerMutations<T extends Mutation>
 
Method Summary
<T extends Mutation>
void
binMutations(Credentials credentials, List<T> mutations, Map<String,TabletLocator.TabletServerMutations<T>> binnedMutations, List<T> failures)
           
 List<Range> binRanges(Credentials credentials, List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges)
           
protected  TabletLocator.TabletLocation getRootTabletLocation()
           
 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(Credentials credentials, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry)
           
 
Methods inherited from class org.apache.accumulo.core.client.impl.TabletLocator
clearLocators, getLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

binMutations

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

binRanges

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

getRootTabletLocation

protected TabletLocator.TabletLocation getRootTabletLocation()

locateTablet

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


Copyright © 2015 Apache Accumulo Project. All rights reserved.