public class IndexPartitionWriteTask<H extends IndexAsyncWriteStats<L,HS>,O,E extends KVO<O>,L extends PartitionLocator,S extends IndexPartitionWriteTask,HS extends IndexPartitionWriteStats,M extends IndexWriteTask<H,O,E,S,L,HS,T,R,A>,T extends IKeyArrayIndexProcedure,R,A> extends AbstractSubtask<HS,M,E,L>
BlockingBuffer
writing on a specific index
partition.Modifier and Type | Field and Description |
---|---|
IDataService |
dataService
The data service on which the index partition resides.
|
int |
partitionId
The index partition identifier.
|
long |
timestamp
The timestamp associated with the index view.
|
buffer, lastChunkAvailableNanos, lastChunkNanos, locator, log, master, src, stats
Constructor and Description |
---|
IndexPartitionWriteTask(M master,
L locator,
IDataService dataService,
BlockingBuffer<E[]> buffer) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
handleChunk(E[] sourceChunk)
Process a chunk from the buffer.
|
protected void |
notifyClientOfRedirect(L locator,
Throwable cause)
Notifies the client that the locator is stale.
|
String |
toString() |
awaitPending, call, cancelRemoteTask, handleRedirect
public final IDataService dataService
public final long timestamp
public final int partitionId
public IndexPartitionWriteTask(M master, L locator, IDataService dataService, BlockingBuffer<E[]> buffer)
public String toString()
toString
in class AbstractSubtask<HS extends IndexPartitionWriteStats,M extends IndexWriteTask<H,O,E,S,L,HS,T,R,A>,E extends KVO<O>,L extends PartitionLocator>
protected boolean handleChunk(E[] sourceChunk) throws ExecutionException, InterruptedException, IOException
handleChunk
in class AbstractSubtask<HS extends IndexPartitionWriteStats,M extends IndexWriteTask<H,O,E,S,L,HS,T,R,A>,E extends KVO<O>,L extends PartitionLocator>
sourceChunk
- A chunk (in sorted order).true
iff a StaleLocatorException
was
handled, in which case the task should exit immediately.IOException
- RMI error.ExecutionException
InterruptedException
protected void notifyClientOfRedirect(L locator, Throwable cause)
notifyClientOfRedirect
in class AbstractSubtask<HS extends IndexPartitionWriteStats,M extends IndexWriteTask<H,O,E,S,L,HS,T,R,A>,E extends KVO<O>,L extends PartitionLocator>
locator
- The locator.cause
- The cause.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.