@Override
public Void call() throws Exception {
LOG.info("Initializing Input using InputSpec: " + inputSpec);
String edgeName = inputSpec.getSourceVertexName();
LogicalInput input = createInput(inputSpec);
TezInputContext inputContext = createInputContext(input, inputSpec, inputIndex);
inputsMap.put(edgeName, input);
inputContextMap.put(edgeName, inputContext);
if (input instanceof LogicalInput) {
((LogicalInput) input).setNumPhysicalInputs(inputSpec
.getPhysicalEdgeCount());
}
LOG.info("Initializing Input with src edge: " + edgeName);
List<Event> events = input.initialize(inputContext);
sendTaskGeneratedEvents(events, EventProducerConsumerType.INPUT,
inputContext.getTaskVertexName(), inputContext.getSourceVertexName(),
taskSpec.getTaskAttemptID());
LOG.info("Initialized Input with src edge: " + edgeName);
return null;
}