private boolean isArrowWriterOutputLimited(OperatorProfile operatorProfile) { for (int i = 0; i < operatorProfile.getMetricCount(); i++) { UserBitShared.MetricValue metricValue = operatorProfile.getMetric(i); if (metricValue.getMetricId() == WriterOperator.Metric.OUTPUT_LIMITED.ordinal()) { return metricValue.getLongValue() > 0; } } return false; }