Source:
private SqlQueryScheduler( QueryStateMachine queryStateMachine, LocationFactory locationFactory, SubPlan plan, NodePartitioningManager nodePartitioningManager, NodeScheduler nodeScheduler, RemoteTaskFactory remoteTaskFactory, SplitSourceFactory splitSourceFactory, Session session, boolean summarizeTaskInfo, int splitBatchSize, ExecutorService queryExecutor, ScheduledExecutorService schedulerExecutor, FailureDetector failureDetector, OutputBuffers rootOutputBuffers, NodeTaskMap nodeTaskMap, ExecutionPolicy executionPolicy, SplitSchedulerStats schedulerStats, Metadata metadata) { this.queryStateMachine = requireNonNull(queryStateMachine, "queryStateMachine is null"); this.locationFactory = requireNonNull(locationFactory, "locationFactory is null"); this.plan = requireNonNull(plan, "plan is null"); this.executionPolicy = requireNonNull(executionPolicy, "schedulerPolicyFactory is null"); this.schedulerStats = requireNonNull(schedulerStats, "schedulerStats is null"); this.summarizeTaskInfo = requireNonNull(summarizeTaskInfo, "summarizeTaskInfo is null"); OutputBufferId rootBufferId = getOnlyElement(rootOutputBuffers.getBuffers().keySet()); this.rootLocationsConsumer = (fragmentId, tasks, noMoreExchangeLocations) -> updateQueryOutputLocations(queryStateMachine, rootBufferId, tasks, noMoreExchangeLocations); this.metadata = requireNonNull(metadata, "metadata is null"); this.rootOutputBuffers = requireNonNull(rootOutputBuffers, "rootOutputBuffers is null"); this.nodeScheduler = requireNonNull(nodeScheduler, "nodeScheduler is null"); this.remoteTaskFactory = requireNonNull(remoteTaskFactory, "remoteTaskFactory is null"); this.splitSourceFactory = requireNonNull(splitSourceFactory, "splitSourceFactory is null"); this.session = requireNonNull(session, "session is null"); this.splitBatchSize = requireNonNull(splitBatchSize, "splitBatchSize is null"); this.nodePartitioningManager = requireNonNull(nodePartitioningManager, "nodePartitioningManager is null"); this.schedulerExecutor = requireNonNull(schedulerExecutor, "schedulerExecutor is null"); this.failureDetector = requireNonNull(failureDetector, "failureDetector is null"); this.nodeTaskMap = requireNonNull(nodeTaskMap, "nodeTaskMap is null"); this.sectionedPlan = extractStreamingSections(plan); this.executor = requireNonNull(queryExecutor, "queryExecutor is null"); this.maxConcurrentMaterializations = getMaxConcurrentMaterializations(session); }

Target:
private SqlQueryScheduler( QueryStateMachine queryStateMachine, LocationFactory locationFactory, SubPlan plan, NodePartitioningManager nodePartitioningManager, NodeScheduler nodeScheduler, RemoteTaskFactory remoteTaskFactory, SplitSourceFactory splitSourceFactory, Session session, boolean summarizeTaskInfo, int splitBatchSize, ExecutorService queryExecutor, ScheduledExecutorService schedulerExecutor, FailureDetector failureDetector, OutputBuffers rootOutputBuffers, NodeTaskMap nodeTaskMap, ExecutionPolicy executionPolicy, SplitSchedulerStats schedulerStats, Metadata metadata) { this.queryStateMachine = requireNonNull(queryStateMachine, "queryStateMachine is null"); this.locationFactory = requireNonNull(locationFactory, "locationFactory is null"); this.plan = requireNonNull(plan, "plan is null"); this.executionPolicy = requireNonNull(executionPolicy, "schedulerPolicyFactory is null"); this.schedulerStats = requireNonNull(schedulerStats, "schedulerStats is null"); this.summarizeTaskInfo = summarizeTaskInfo; OutputBufferId rootBufferId = getOnlyElement(rootOutputBuffers.getBuffers().keySet()); this.rootLocationsConsumer = (fragmentId, tasks, noMoreExchangeLocations) -> updateQueryOutputLocations(queryStateMachine, rootBufferId, tasks, noMoreExchangeLocations); this.metadata = requireNonNull(metadata, "metadata is null"); this.rootOutputBuffers = requireNonNull(rootOutputBuffers, "rootOutputBuffers is null"); this.nodeScheduler = requireNonNull(nodeScheduler, "nodeScheduler is null"); this.remoteTaskFactory = requireNonNull(remoteTaskFactory, "remoteTaskFactory is null"); this.splitSourceFactory = requireNonNull(splitSourceFactory, "splitSourceFactory is null"); this.session = requireNonNull(session, "session is null"); this.splitBatchSize = requireNonNull(splitBatchSize, "splitBatchSize is null"); this.nodePartitioningManager = requireNonNull(nodePartitioningManager, "nodePartitioningManager is null"); this.schedulerExecutor = requireNonNull(schedulerExecutor, "schedulerExecutor is null"); this.failureDetector = requireNonNull(failureDetector, "failureDetector is null"); this.nodeTaskMap = requireNonNull(nodeTaskMap, "nodeTaskMap is null"); this.sectionedPlan = extractStreamingSections(plan); this.executor = requireNonNull(queryExecutor, "queryExecutor is null"); this.maxConcurrentMaterializations = getMaxConcurrentMaterializations(session); }