@Override
public SourceOperator createOperator(DriverContext driverContext)
{
checkState(!closed, "Factory is already closed");
OperatorContext operatorContext = driverContext.addOperatorContext(operatorId, constructor.getDeclaringClass().getSimpleName());
try {
return constructor.newInstance(operatorContext, sourceId, dataStreamProvider, columns, types);
}
catch (InvocationTargetException e) {
throw Throwables.propagate(e.getCause());