Source:
public OperatorStats getOperatorStats() { Supplier<OperatorInfo> infoSupplier = this.infoSupplier.get(); OperatorInfo info = Optional.ofNullable(infoSupplier).map(Supplier::get).orElse(null); long inputPositionsCount = inputPositions.getTotalCount(); return new OperatorStats( driverContext.getTaskId().getStageId().getId(), driverContext.getPipelineContext().getPipelineId(), operatorId, planNodeId, operatorType, 1, addInputTiming.getCalls(), new Duration(addInputTiming.getWallNanos(), NANOSECONDS).convertToMostSuccinctTimeUnit(), new Duration(addInputTiming.getCpuNanos(), NANOSECONDS).convertToMostSuccinctTimeUnit(), succinctBytes(inputDataSize.getTotalCount()), inputPositionsCount, (double) inputPositionsCount * inputPositionsCount, getOutputTiming.getCalls(), new Duration(getOutputTiming.getWallNanos(), NANOSECONDS).convertToMostSuccinctTimeUnit(), new Duration(getOutputTiming.getCpuNanos(), NANOSECONDS).convertToMostSuccinctTimeUnit(), succinctBytes(outputDataSize.getTotalCount()), outputPositions.getTotalCount(), succinctBytes(physicalWrittenDataSize.get()), succinctBytes(spillContext.getSpilledBytes()), new Duration(blockedWallNanos.get(), NANOSECONDS).convertToMostSuccinctTimeUnit(), finishTiming.getCalls(), new Duration(finishTiming.getWallNanos(), NANOSECONDS).convertToMostSuccinctTimeUnit(), new Duration(finishTiming.getCpuNanos(), NANOSECONDS).convertToMostSuccinctTimeUnit(), succinctBytes(operatorMemoryContext.getUserMemory()), succinctBytes(getReservedRevocableBytes()), succinctBytes(operatorMemoryContext.getSystemMemory()), succinctBytes(peakUserMemoryReservation.get()), succinctBytes(peakSystemMemoryReservation.get()), succinctBytes(peakTotalMemoryReservation.get()), memoryFuture.get().isDone() ? Optional.empty() : Optional.of(WAITING_FOR_MEMORY), info); }

Target:
public OperatorStats getOperatorStats() { Supplier<OperatorInfo> infoSupplier = this.infoSupplier.get(); OperatorInfo info = Optional.ofNullable(infoSupplier).map(Supplier::get).orElse(null); long inputPositionsCount = inputPositions.getTotalCount(); return new OperatorStats( driverContext.getTaskId().getStageId().getId(), driverContext.getPipelineContext().getPipelineId(), operatorId, planNodeId, operatorType, 1, addInputTiming.getCalls(), new Duration(addInputTiming.getWallNanos(), NANOSECONDS).convertToMostSuccinctTimeUnit(), new Duration(addInputTiming.getCpuNanos(), NANOSECONDS).convertToMostSuccinctTimeUnit(), succinctBytes(rawInputDataSize.getTotalCount()), succinctBytes(inputDataSize.getTotalCount()), inputPositionsCount, (double) inputPositionsCount * inputPositionsCount, getOutputTiming.getCalls(), new Duration(getOutputTiming.getWallNanos(), NANOSECONDS).convertToMostSuccinctTimeUnit(), new Duration(getOutputTiming.getCpuNanos(), NANOSECONDS).convertToMostSuccinctTimeUnit(), succinctBytes(outputDataSize.getTotalCount()), outputPositions.getTotalCount(), succinctBytes(physicalWrittenDataSize.get()), new Duration(blockedWallNanos.get(), NANOSECONDS).convertToMostSuccinctTimeUnit(), finishTiming.getCalls(), new Duration(finishTiming.getWallNanos(), NANOSECONDS).convertToMostSuccinctTimeUnit(), new Duration(finishTiming.getCpuNanos(), NANOSECONDS).convertToMostSuccinctTimeUnit(), succinctBytes(operatorMemoryContext.getUserMemory()), succinctBytes(getReservedRevocableBytes()), succinctBytes(operatorMemoryContext.getSystemMemory()), succinctBytes(peakUserMemoryReservation.get()), succinctBytes(peakSystemMemoryReservation.get()), succinctBytes(peakTotalMemoryReservation.get()), succinctBytes(spillContext.getSpilledBytes()), memoryFuture.get().isDone() ? Optional.empty() : Optional.of(WAITING_FOR_MEMORY), info); }