public interface IScaleOutClientIndex extends IClientIndex, ISplitter, IAsynchronousWriteBufferFactory
|Modifier and Type||Method and Description|
Resolve the data service to which the index partition is mapped.
Return the object used to access the services in the connected federation.
Returns an iterator that will visit the
Notifies the client that a
getCounter, getName, getTimestamp
getCounters, getIndexMetadata, getResourceMetadata, submit, submit, submit
contains, insert, lookup, putIfAbsent, remove
rangeCount, rangeCount, rangeCountExact, rangeCountExactWithDeleted, rangeIterator, rangeIterator, rangeIterator
IDataService getDataService(PartitionLocator pmd)
pmd- The index partition locator.
RuntimeException- if none of the data services identified in the index partition locator record could be discovered.
Iterator<PartitionLocator> locatorScan(long ts, byte fromKey, byte toKey, boolean reverseScan)
PartitionLocators for the specified scale-out index key range.
ts- The timestamp that will be used to visit the locators.
fromKey- The scale-out index first key that will be visited (inclusive). When
nullthere is no lower bound.
toKey- The first scale-out index key that will NOT be visited (exclusive). When
nullthere is no upper bound.
trueif you need to visit the index partitions in reverse key order (this is done when the partitioned iterator is scanning backwards).
ITuple.getValue()will be a serialized
AbstractScaleOutFederation.locatorScan(String, long, byte, byte, boolean)
void staleLocator(long ts, PartitionLocator locator, StaleLocatorException cause)
StaleLocatorExceptionwas received. The client will use this information to refresh the
ts- The timestamp of the metadata index view from which the locator was obtained.
locator- The locator that was stale.
cause- The reason why the locator became stale (split, join, or move).
RuntimeException- unless the timestamp given is
ITx.READ_COMMITTEDsince stale locators do not occur for other views.
AtomicIntegerwhose value is the recursion depth of the current
Thread. This is initially zero when the task is submitted by the application. The value incremented when a task results in a
StaleLocatorExceptionand is decremented when returning from the recursive handling of the
The recursion depth is used:
StaleLocatorExceptions for a split of a task submitted by the application
thread poolthen all threads in the pool can rapidly become busy awaiting retry tasks with the result that the client is essentially deadlocked.
Copyright © 2006–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.