Class MockTabletLocator
- java.lang.Object
-
- org.apache.accumulo.core.client.impl.TabletLocator
-
- org.apache.accumulo.core.client.mock.impl.MockTabletLocator
-
@Deprecated public class MockTabletLocator extends TabletLocator
Deprecated.since 1.8.0; use MiniAccumuloCluster or a standard mock framework instead.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.core.client.impl.TabletLocator
TabletLocator.TabletLocation, TabletLocator.TabletLocations, TabletLocator.TabletServerMutations<T extends Mutation>
-
-
Constructor Summary
Constructors Constructor Description MockTabletLocator()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T extends Mutation>
voidbinMutations(ClientContext context, List<T> mutations, Map<String,TabletLocator.TabletServerMutations<T>> binnedMutations, List<T> failures)
Deprecated.List<Range>
binRanges(ClientContext context, List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges)
Deprecated.void
invalidateCache()
Deprecated.Invalidate entire cachevoid
invalidateCache(Collection<KeyExtent> keySet)
Deprecated.void
invalidateCache(Instance instance, String server)
Deprecated.Invalidate all metadata entries that point to servervoid
invalidateCache(KeyExtent failedExtent)
Deprecated.TabletLocator.TabletLocation
locateTablet(ClientContext context, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry)
Deprecated.-
Methods inherited from class org.apache.accumulo.core.client.impl.TabletLocator
clearLocators, getLocator
-
-
-
-
Method Detail
-
locateTablet
public TabletLocator.TabletLocation locateTablet(ClientContext context, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
Deprecated.- Specified by:
locateTablet
in classTabletLocator
- Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException
-
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
Deprecated.- Specified by:
binMutations
in classTabletLocator
- Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException
-
binRanges
public List<Range> binRanges(ClientContext context, List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
Deprecated.- Specified by:
binRanges
in classTabletLocator
- Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException
-
invalidateCache
public void invalidateCache(KeyExtent failedExtent)
Deprecated.- Specified by:
invalidateCache
in classTabletLocator
-
invalidateCache
public void invalidateCache(Collection<KeyExtent> keySet)
Deprecated.- Specified by:
invalidateCache
in classTabletLocator
-
invalidateCache
public void invalidateCache()
Deprecated.Description copied from class:TabletLocator
Invalidate entire cache- Specified by:
invalidateCache
in classTabletLocator
-
invalidateCache
public void invalidateCache(Instance instance, String server)
Deprecated.Description copied from class:TabletLocator
Invalidate all metadata entries that point to server- Specified by:
invalidateCache
in classTabletLocator
-
-