/** * <code>repeated .exec.shared.OperatorProfile operator_profile = 4;</code> */ public Builder setOperatorProfile( int index, org.apache.drill.exec.proto.UserBitShared.OperatorProfile.Builder builderForValue) { if (operatorProfileBuilder_ == null) { ensureOperatorProfileIsMutable(); operatorProfile_.set(index, builderForValue.build()); onChanged(); } else { operatorProfileBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .exec.shared.OperatorProfile operator_profile = 4;</code> */ public Builder addOperatorProfile( int index, org.apache.drill.exec.proto.UserBitShared.OperatorProfile.Builder builderForValue) { if (operatorProfileBuilder_ == null) { ensureOperatorProfileIsMutable(); operatorProfile_.add(index, builderForValue.build()); onChanged(); } else { operatorProfileBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .exec.shared.OperatorProfile operator_profile = 4;</code> */ public Builder addOperatorProfile( org.apache.drill.exec.proto.UserBitShared.OperatorProfile.Builder builderForValue) { if (operatorProfileBuilder_ == null) { ensureOperatorProfileIsMutable(); operatorProfile_.add(builderForValue.build()); onChanged(); } else { operatorProfileBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .exec.shared.OperatorProfile operator_profile = 4;</code> */ public Builder addOperatorProfile( int index, org.apache.drill.exec.proto.UserBitShared.OperatorProfile.Builder builderForValue) { if (operatorProfileBuilder_ == null) { ensureOperatorProfileIsMutable(); operatorProfile_.add(index, builderForValue.build()); onChanged(); } else { operatorProfileBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .exec.shared.OperatorProfile operator_profile = 4;</code> */ public Builder setOperatorProfile( int index, org.apache.drill.exec.proto.UserBitShared.OperatorProfile.Builder builderForValue) { if (operatorProfileBuilder_ == null) { ensureOperatorProfileIsMutable(); operatorProfile_.set(index, builderForValue.build()); onChanged(); } else { operatorProfileBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
public OperatorProfile getProfile() { final OperatorProfile.Builder b = OperatorProfile // .newBuilder() // .setOperatorType(operatorType) // .setOperatorId(operatorId) // .setSetupNanos(setupNanos) // .setProcessNanos(processingNanos) .setWaitNanos(waitNanos); if (allocator != null) { b.setPeakLocalMemoryAllocated(allocator.getPeakMemoryAllocation()); } addAllMetrics(b); return b.build(); }
/** * <code>repeated .exec.shared.OperatorProfile operator_profile = 4;</code> */ public Builder addOperatorProfile( org.apache.drill.exec.proto.UserBitShared.OperatorProfile.Builder builderForValue) { if (operatorProfileBuilder_ == null) { ensureOperatorProfileIsMutable(); operatorProfile_.add(builderForValue.build()); onChanged(); } else { operatorProfileBuilder_.addMessage(builderForValue.build()); } return this; } /**