public class RootTabletLocator extends TabletLocator
TabletLocator.TabletLocation, TabletLocator.TabletLocations, TabletLocator.TabletServerMutations<T extends Mutation>
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) |
protected TabletLocator.TabletLocation |
getRootTabletLocation(ClientContext context) |
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
public <T extends Mutation> void binMutations(ClientContext context, List<T> mutations, Map<String,TabletLocator.TabletServerMutations<T>> binnedMutations, List<T> failures)
binMutations
in class TabletLocator
public List<Range> binRanges(ClientContext context, List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges)
binRanges
in class TabletLocator
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
protected TabletLocator.TabletLocation getRootTabletLocation(ClientContext context)
public TabletLocator.TabletLocation locateTablet(ClientContext context, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry)
locateTablet
in class TabletLocator
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.