public class TimeoutTabletLocator extends SyncingTabletLocator
TimedOutException
if the specified timeout duration elapses between two failed
TabletLocator calls.
This class is safe to cache locally.
TabletLocator.TabletLocation, TabletLocator.TabletLocations, TabletLocator.TabletServerMutations<T extends Mutation>
Constructor and Description |
---|
TimeoutTabletLocator(long timeout,
ClientContext context,
String table) |
Modifier and Type | Method and Description |
---|---|
<T extends Mutation> |
binMutations(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) |
TabletLocator.TabletLocation |
locateTablet(ClientContext context,
org.apache.hadoop.io.Text row,
boolean skipRow,
boolean retry) |
invalidateCache, invalidateCache, invalidateCache, invalidateCache
clearLocators, getLocator
public TimeoutTabletLocator(long timeout, ClientContext context, String table)
public TabletLocator.TabletLocation locateTablet(ClientContext context, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
locateTablet
in class SyncingTabletLocator
AccumuloException
AccumuloSecurityException
TableNotFoundException
public <T extends Mutation> void binMutations(ClientContext context, List<T> mutations, Map<String,TabletLocator.TabletServerMutations<T>> binnedMutations, List<T> failures) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
binMutations
in class SyncingTabletLocator
AccumuloException
AccumuloSecurityException
TableNotFoundException
public List<Range> binRanges(ClientContext context, List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
binRanges
in class SyncingTabletLocator
AccumuloException
AccumuloSecurityException
TableNotFoundException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.