public final class InputReader extends DataTransfer
| Constructor and Description |
|---|
InputReader(int dstTaskIndex,
IRVertex srcVertex,
RuntimeEdge runtimeEdge,
BlockManagerWorker blockManagerWorker) |
| Modifier and Type | Method and Description |
|---|---|
static Iterator |
combineFutures(List<CompletableFuture<Iterator>> futures)
Combine the given list of futures.
|
RuntimeEdge |
getRuntimeEdge() |
CompletableFuture<Object> |
getSideInput() |
int |
getSourceParallelism()
Get the parallelism of the source task.
|
String |
getSrcIrVertexId() |
boolean |
isSideInputReader() |
List<CompletableFuture<Iterator>> |
read()
Reads input data depending on the communication pattern of the srcVertex.
|
getIdpublic InputReader(int dstTaskIndex,
@Nullable
IRVertex srcVertex,
RuntimeEdge runtimeEdge,
BlockManagerWorker blockManagerWorker)
public List<CompletableFuture<Iterator>> read()
public RuntimeEdge getRuntimeEdge()
public String getSrcIrVertexId()
public boolean isSideInputReader()
public CompletableFuture<Object> getSideInput()
public int getSourceParallelism()
public static Iterator combineFutures(List<CompletableFuture<Iterator>> futures) throws ExecutionException, InterruptedException
futures - to combine.ExecutionException - when fail to get results from futures.InterruptedException - when interrupted during getting results from futures.Copyright © 2018. All rights reserved.