org.apache.accumulo.core.client.impl
public class TabletLocatorImpl extends TabletLocator
Modifier and Type | Class and Description |
---|---|
static interface |
TabletLocatorImpl.TabletLocationObtainer |
TabletLocator.TabletLocation, TabletLocator.TabletLocations, TabletLocator.TabletServerMutations
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 org.apache.hadoop.io.Text |
tableId |
Constructor and Description |
---|
TabletLocatorImpl(org.apache.hadoop.io.Text table,
TabletLocator parent,
TabletLocatorImpl.TabletLocationObtainer tlo) |
Modifier and Type | Method and Description |
---|---|
protected TabletLocator.TabletLocation |
_locateTablet(org.apache.hadoop.io.Text row,
boolean skipRow,
boolean retry,
boolean lock,
TCredentials credentials) |
protected static void |
addRange(Map<String,Map<KeyExtent,List<Range>>> binnedRanges,
String location,
KeyExtent ke,
Range range) |
void |
binMutations(List<Mutation> mutations,
Map<String,TabletLocator.TabletServerMutations> binnedMutations,
List<Mutation> failures,
TCredentials credentials) |
List<Range> |
binRanges(List<Range> ranges,
Map<String,Map<KeyExtent,List<Range>>> binnedRanges,
TCredentials credentials) |
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(org.apache.hadoop.io.Text row,
boolean skipRow,
boolean retry,
TCredentials credentials) |
getInstance
protected org.apache.hadoop.io.Text 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(org.apache.hadoop.io.Text table, TabletLocator parent, TabletLocatorImpl.TabletLocationObtainer tlo)
public void binMutations(List<Mutation> mutations, Map<String,TabletLocator.TabletServerMutations> binnedMutations, List<Mutation> failures, TCredentials credentials) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
binMutations
in class TabletLocator
AccumuloException
AccumuloSecurityException
TableNotFoundException
public List<Range> binRanges(List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges, TCredentials credentials) 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(String server)
TabletLocator
invalidateCache
in class TabletLocator
public void invalidateCache()
TabletLocator
invalidateCache
in class TabletLocator
public TabletLocator.TabletLocation locateTablet(org.apache.hadoop.io.Text row, boolean skipRow, boolean retry, TCredentials credentials) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
locateTablet
in class TabletLocator
AccumuloException
AccumuloSecurityException
TableNotFoundException
protected TabletLocator.TabletLocation _locateTablet(org.apache.hadoop.io.Text row, boolean skipRow, boolean retry, boolean lock, TCredentials credentials) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.