Class TabletLocator
- java.lang.Object
-
- org.apache.accumulo.core.clientImpl.TabletLocator
-
- Direct Known Subclasses:
RootTabletLocator
,SyncingTabletLocator
,TabletLocatorImpl
public abstract class TabletLocator extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TabletLocator.TabletLocation
static class
TabletLocator.TabletLocations
static class
TabletLocator.TabletServerMutations<T extends Mutation>
-
Constructor Summary
Constructors Constructor Description TabletLocator()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract <T extends Mutation>
voidbinMutations(ClientContext context, List<T> mutations, Map<String,TabletLocator.TabletServerMutations<T>> binnedMutations, List<T> failures)
abstract List<Range>
binRanges(ClientContext context, List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges)
static void
clearLocators()
static TabletLocator
getLocator(ClientContext context, TableId tableId)
abstract void
invalidateCache()
Invalidate entire cacheabstract void
invalidateCache(Collection<KeyExtent> keySet)
abstract void
invalidateCache(ClientContext context, String server)
Invalidate all metadata entries that point to serverabstract void
invalidateCache(KeyExtent failedExtent)
abstract TabletLocator.TabletLocation
locateTablet(ClientContext context, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry)
-
-
-
Method Detail
-
locateTablet
public abstract TabletLocator.TabletLocation locateTablet(ClientContext context, org.apache.hadoop.io.Text row, boolean skipRow, boolean retry) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
-
binMutations
public abstract <T extends Mutation> void binMutations(ClientContext context, List<T> mutations, Map<String,TabletLocator.TabletServerMutations<T>> binnedMutations, List<T> failures) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
-
binRanges
public abstract List<Range> binRanges(ClientContext context, List<Range> ranges, Map<String,Map<KeyExtent,List<Range>>> binnedRanges) throws AccumuloException, AccumuloSecurityException, TableNotFoundException
-
invalidateCache
public abstract void invalidateCache(KeyExtent failedExtent)
-
invalidateCache
public abstract void invalidateCache(Collection<KeyExtent> keySet)
-
invalidateCache
public abstract void invalidateCache()
Invalidate entire cache
-
invalidateCache
public abstract void invalidateCache(ClientContext context, String server)
Invalidate all metadata entries that point to server
-
clearLocators
public static void clearLocators()
-
getLocator
public static TabletLocator getLocator(ClientContext context, TableId tableId)
-
-