/** * <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; } /**
bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInputProfileIsMutable(); inputProfile_.addAll(other.inputProfile_); onChanged(); inputProfileBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getInputProfileFieldBuilder() : null; } else { inputProfileBuilder_.addAllMessages(other.inputProfile_); setOperatorId(other.getOperatorId()); setOperatorType(other.getOperatorType()); setSetupNanos(other.getSetupNanos()); setProcessNanos(other.getProcessNanos()); setPeakLocalMemoryAllocated(other.getPeakLocalMemoryAllocated()); bitField0_ = (bitField0_ & ~0x00000040); } else { ensureMetricIsMutable(); metric_.addAll(other.metric_); onChanged();
bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInputProfileIsMutable(); inputProfile_.addAll(other.inputProfile_); onChanged(); inputProfileBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getInputProfileFieldBuilder() : null; } else { inputProfileBuilder_.addAllMessages(other.inputProfile_); setOperatorId(other.getOperatorId()); setOperatorType(other.getOperatorType()); setSetupNanos(other.getSetupNanos()); setProcessNanos(other.getProcessNanos()); setPeakLocalMemoryAllocated(other.getPeakLocalMemoryAllocated()); bitField0_ = (bitField0_ & ~0x00000040); } else { ensureMetricIsMutable(); metric_.addAll(other.metric_); onChanged();
return; case 1: builder.addInputProfile(input.mergeObject(org.apache.drill.exec.proto.UserBitShared.StreamProfile.newBuilder(), org.apache.drill.exec.proto.SchemaUserBitShared.StreamProfile.MERGE)); builder.setOperatorId(input.readInt32()); break; case 4: builder.setOperatorType(input.readInt32()); break; case 5: builder.setSetupNanos(input.readInt64()); break; case 6: builder.setProcessNanos(input.readInt64()); break; case 7: builder.setPeakLocalMemoryAllocated(input.readInt64()); break; case 8: builder.addMetric(input.mergeObject(org.apache.drill.exec.proto.UserBitShared.MetricValue.newBuilder(), org.apache.drill.exec.proto.SchemaUserBitShared.MetricValue.MERGE)); builder.setWaitNanos(input.readInt64()); break; default:
/** * <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; } /**
/** * <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; } /**
private static Builder create() { return new Builder(); }
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(); }
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
@Override public void apply(int key, long value) { builder.addMetric(MetricValue.newBuilder().setMetricId(key).setLongValue(value)); } }
public void addStreamProfile(OperatorProfile.Builder builder) { for(int i = 0; i < recordsReceivedByInput.length; i++){ builder.addInputProfile(StreamProfile.newBuilder().setBatches(batchesReceivedByInput[i]).setRecords(recordsReceivedByInput[i]).setSchemas(this.schemaCountByInput[i])); } }
@Override public void apply(int key, double value) { builder.addMetric(MetricValue.newBuilder().setMetricId(key).setDoubleValue(value)); } }
return; case 1: builder.addInputProfile(input.mergeObject(org.apache.drill.exec.proto.UserBitShared.StreamProfile.newBuilder(), org.apache.drill.exec.proto.SchemaUserBitShared.StreamProfile.MERGE)); builder.setOperatorId(input.readInt32()); break; case 4: builder.setOperatorType(input.readInt32()); break; case 5: builder.setSetupNanos(input.readInt64()); break; case 6: builder.setProcessNanos(input.readInt64()); break; case 7: builder.setPeakLocalMemoryAllocated(input.readInt64()); break; case 8: builder.addMetric(input.mergeObject(org.apache.drill.exec.proto.UserBitShared.MetricValue.newBuilder(), org.apache.drill.exec.proto.SchemaUserBitShared.MetricValue.MERGE)); builder.setWaitNanos(input.readInt64()); break; default:
/** * <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; } /**
private static Builder create() { return new Builder(); }
/** * <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; } /**
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**