public class TabletLocatorImpl extends TabletLocator
Modifier and Type | Class and Description |
---|---|
static interface |
TabletLocatorImpl.TabletLocationObtainer |
static interface |
TabletLocatorImpl.TabletServerLockChecker |
TabletLocator.TabletLocation, TabletLocator.TabletLocations, TabletLocator.TabletServerMutations<T extends Mutation>
Modifier and Type | Field and Description |
---|---|
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 Table.ID |
tableId |
Constructor and Description |
---|
TabletLocatorImpl(Table.ID tableId,
TabletLocator parent,
TabletLocatorImpl.TabletLocationObtainer tlo,
TabletLocatorImpl.TabletServerLockChecker tslc) |
Modifier and Type | Method and Description |
---|---|
protected TabletLocator.TabletLocation |
_locateTablet(ClientContext context,
org.apache.hadoop.io.Text row,
boolean skipRow,
boolean retry,
boolean lock,
org.apache.accumulo.core.client.impl.TabletLocatorImpl.LockCheckerSession lcSession) |
protected static void |
addRange(Map<String,Map<KeyExtent,List<Range>>> binnedRanges,
String location,
KeyExtent ke,
Range range) |
<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) |
void |
invalidateCache()
Invalidate entire cache
|
void |
invalidateCache(ClientContext context,
String server)
Invalidate all metadata entries that point to server
|
void |
invalidateCache(Collection<KeyExtent> keySet) |
void |
invalidateCache(KeyExtent failedExtent) |
TabletLocator.TabletLocation |
locateTablet(ClientContext context,
org.apache.hadoop.io.Text row,
boolean skipRow,
boolean retry) |
clearLocators, getLocator
protected Table.ID tableId
protected TabletLocator parent
protected TreeMap<org.apache.hadoop.io.Text,TabletLocator.TabletLocation> metaCache
protected TabletLocatorImpl.TabletLocationObtainer locationObtainer
protected org.apache.hadoop.io.Text lastTabletRow
public TabletLocatorImpl(Table.ID tableId, TabletLocator parent, TabletLocatorImpl.TabletLocationObtainer tlo, TabletLocatorImpl.TabletServerLockChecker tslc)
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 TabletLocator
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 TabletLocator
AccumuloException
AccumuloSecurityException
TableNotFoundException
public void invalidateCache(KeyExtent failedExtent)
invalidateCache
in class TabletLocator
public void invalidateCache(Collection<KeyExtent> keySet)
invalidateCache
in class TabletLocator
public void invalidateCache(ClientContext context, String server)
TabletLocator
invalidateCache
in class TabletLocator
public void invalidateCache()
TabletLocator
invalidateCache
in class TabletLocator
public TabletLocator.TabletLocation locateTablet(ClientContext context, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
locateTablet
in class TabletLocator
AccumuloException
AccumuloSecurityException
TableNotFoundException
protected TabletLocator.TabletLocation _locateTablet(ClientContext context, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry, boolean lock, org.apache.accumulo.core.client.impl.TabletLocatorImpl.LockCheckerSession lcSession) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.