public String getContent() { TableBuilder builder = new TableBuilder(OPERATOR_COLUMNS); for (ImmutablePair<OperatorProfile, Integer> ip : ops) { int minor = ip.getRight(); OperatorProfile op = ip.getLeft(); String path = new OperatorPathBuilder().setMajor(major).setMinor(minor).setOperator(op).build(); builder.appendCell(path, null); builder.appendNanos(op.getSetupNanos()); builder.appendNanos(op.getProcessNanos()); builder.appendNanos(op.getWaitNanos()); long maxBatches = Long.MIN_VALUE; long maxRecords = Long.MIN_VALUE; for (StreamProfile sp : op.getInputProfileList()) { maxBatches = Math.max(sp.getBatches(), maxBatches); maxRecords = Math.max(sp.getRecords(), maxRecords); } builder.appendFormattedInteger(maxBatches, null); builder.appendFormattedInteger(maxRecords, null); builder.appendBytes(op.getPeakLocalMemoryAllocated(), null); } return builder.build(); }
for (final StreamProfile sp : op.getInputProfileList()) { incomingRecords += sp.getRecords(); batches += sp.getBatches();
public Builder mergeFrom(com.dremio.exec.proto.UserBitShared.StreamProfile other) { if (other == com.dremio.exec.proto.UserBitShared.StreamProfile.getDefaultInstance()) return this; if (other.hasRecords()) { setRecords(other.getRecords()); } if (other.hasBatches()) { setBatches(other.getBatches()); } if (other.hasSchemas()) { setSchemas(other.getSchemas()); } if (other.hasSize()) { setSize(other.getSize()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.UserBitShared.StreamProfile message) throws java.io.IOException { if(message.hasRecords()) output.writeInt64(1, message.getRecords(), false); if(message.hasBatches()) output.writeInt64(2, message.getBatches(), false); if(message.hasSchemas()) output.writeInt64(3, message.getSchemas(), false); if(message.hasSize()) output.writeInt64(4, message.getSize(), false); } public boolean isInitialized(com.dremio.exec.proto.UserBitShared.StreamProfile message)