Class TabletLocatorImpl
- java.lang.Object
-
- org.apache.accumulo.core.clientImpl.TabletLocator
-
- org.apache.accumulo.core.clientImpl.TabletLocatorImpl
-
public class TabletLocatorImpl extends TabletLocator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTabletLocatorImpl.TabletLocationObtainerstatic interfaceTabletLocatorImpl.TabletServerLockChecker-
Nested classes/interfaces inherited from class org.apache.accumulo.core.clientImpl.TabletLocator
TabletLocator.TabletLocation, TabletLocator.TabletLocations, TabletLocator.TabletServerMutations<T extends Mutation>
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.hadoop.io.TextlastTabletRowprotected TabletLocatorImpl.TabletLocationObtainerlocationObtainerprotected TreeMap<org.apache.hadoop.io.Text,TabletLocator.TabletLocation>metaCacheprotected TabletLocatorparentprotected TableIdtableId
-
Constructor Summary
Constructors Constructor Description TabletLocatorImpl(TableId tableId, TabletLocator parent, TabletLocatorImpl.TabletLocationObtainer tlo, TabletLocatorImpl.TabletServerLockChecker tslc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TabletLocator.TabletLocation_locateTablet(ClientContext context, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry, boolean lock, org.apache.accumulo.core.clientImpl.TabletLocatorImpl.LockCheckerSession lcSession)protected static voidaddRange(Map<String,Map<KeyExtent,List<Range>>> binnedRanges, String location, KeyExtent ke, Range range)<T extends Mutation>
voidbinMutations(ClientContext context, List<T> mutations, Map<String,TabletLocator.TabletServerMutations<T>> binnedMutations, List<T> failures)List<Range>binRanges(ClientContext context, List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges)voidinvalidateCache()Invalidate entire cachevoidinvalidateCache(Collection<KeyExtent> keySet)voidinvalidateCache(ClientContext context, String server)Invalidate all metadata entries that point to servervoidinvalidateCache(KeyExtent failedExtent)TabletLocator.TabletLocationlocateTablet(ClientContext context, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry)-
Methods inherited from class org.apache.accumulo.core.clientImpl.TabletLocator
clearLocators, getLocator
-
-
-
-
Field Detail
-
tableId
protected TableId 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(TableId tableId, TabletLocator parent, TabletLocatorImpl.TabletLocationObtainer tlo, TabletLocatorImpl.TabletServerLockChecker tslc)
-
-
Method Detail
-
binMutations
public <T extends Mutation> void binMutations(ClientContext context, List<T> mutations, Map<String,TabletLocator.TabletServerMutations<T>> binnedMutations, List<T> failures) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
- Specified by:
binMutationsin classTabletLocator- Throws:
AccumuloExceptionAccumuloSecurityExceptionTableNotFoundException
-
binRanges
public List<Range> binRanges(ClientContext context, List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
- Specified by:
binRangesin classTabletLocator- Throws:
AccumuloExceptionAccumuloSecurityExceptionTableNotFoundException
-
invalidateCache
public void invalidateCache(KeyExtent failedExtent)
- Specified by:
invalidateCachein classTabletLocator
-
invalidateCache
public void invalidateCache(Collection<KeyExtent> keySet)
- Specified by:
invalidateCachein classTabletLocator
-
invalidateCache
public void invalidateCache(ClientContext context, String server)
Description copied from class:TabletLocatorInvalidate all metadata entries that point to server- Specified by:
invalidateCachein classTabletLocator
-
invalidateCache
public void invalidateCache()
Description copied from class:TabletLocatorInvalidate entire cache- Specified by:
invalidateCachein classTabletLocator
-
locateTablet
public TabletLocator.TabletLocation locateTablet(ClientContext context, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
- Specified by:
locateTabletin classTabletLocator- Throws:
AccumuloExceptionAccumuloSecurityExceptionTableNotFoundException
-
_locateTablet
protected TabletLocator.TabletLocation _locateTablet(ClientContext context, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry, boolean lock, org.apache.accumulo.core.clientImpl.TabletLocatorImpl.LockCheckerSession lcSession) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
-
-