org.apache.accumulo.core.client.mock
public class MockTabletLocator extends TabletLocator
TabletLocator.TabletLocation, TabletLocator.TabletLocations, TabletLocator.TabletServerMutations
Constructor and Description |
---|
MockTabletLocator() |
Modifier and Type | Method and Description |
---|---|
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
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
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()
TabletLocator
invalidateCache
in class TabletLocator
public void invalidateCache(String server)
TabletLocator
invalidateCache
in class TabletLocator
Copyright © 2015 Apache Accumulo Project. All Rights Reserved.