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.TabletServerMutations
 
Field Summary
protected  org.apache.hadoop.io.Text lastTabletRow
           
protected  TabletLocatorImpl.TabletLocationObtainer locationObtainer
           
protected  java.util.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)
           
protected static void addRange(java.util.Map<java.lang.String,java.util.Map<KeyExtent,java.util.List<Range>>> binnedRanges, java.lang.String location, KeyExtent ke, Range range)
           
 void binMutations(java.util.List<Mutation> mutations, java.util.Map<java.lang.String,TabletLocator.TabletServerMutations> binnedMutations, java.util.List<Mutation> failures)
           
 java.util.List<Range> binRanges(java.util.List<Range> ranges, java.util.Map<java.lang.String,java.util.Map<KeyExtent,java.util.List<Range>>> binnedRanges)
           
 void invalidateCache()
          Invalidate entire cache
 void invalidateCache(java.util.Collection<KeyExtent> keySet)
           
 void invalidateCache(KeyExtent failedExtent)
           
 void invalidateCache(java.lang.String server)
          Invalidate all metadata entries that point to server
 TabletLocator.TabletLocation locateTablet(org.apache.hadoop.io.Text row, boolean skipRow, boolean retry)
           
 
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 java.util.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(java.util.List<Mutation> mutations,
                         java.util.Map<java.lang.String,TabletLocator.TabletServerMutations> binnedMutations,
                         java.util.List<Mutation> failures)
                  throws AccumuloException,
                         AccumuloSecurityException,
                         TableNotFoundException
Specified by:
binMutations in class TabletLocator
Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException

binRanges

public java.util.List<Range> binRanges(java.util.List<Range> ranges,
                                       java.util.Map<java.lang.String,java.util.Map<KeyExtent,java.util.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(java.util.Collection<KeyExtent> keySet)
Specified by:
invalidateCache in class TabletLocator

invalidateCache

public void invalidateCache(java.lang.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)
                                          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)
                                              throws AccumuloException,
                                                     AccumuloSecurityException,
                                                     TableNotFoundException
Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException

addRange

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


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