private long getRowsProcessed(MinorFragmentProfile profile) { long maxRecords = 0; for (OperatorProfile operatorProfile : profile.getOperatorProfileList()) { long records = 0; for (StreamProfile inputProfile :operatorProfile.getInputProfileList()) { if (inputProfile.hasRecords()) { records += inputProfile.getRecords(); } } maxRecords = Math.max(maxRecords, records); } return maxRecords; }
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)