public String getMetricsTable() { if (major.getNodePhaseProfileList() == null || major.getNodePhaseProfileList().isEmpty()) { return ""; } final TableBuilder builder = new TableBuilder(PHASE_METRICS_COLUMNS); final List<NodePhaseProfile> nodePhaseProfiles = new ArrayList<>(major.getNodePhaseProfileList()); Collections.sort(nodePhaseProfiles, Comparators.nodeAddress); for (NodePhaseProfile nodePhaseProfile : nodePhaseProfiles) { builder.appendCell(nodePhaseProfile.getEndpoint().getAddress(), null); // Host name builder.appendBytes(nodePhaseProfile.getMaxMemoryUsed(), null); // Peak Memory } return builder.build(); } }
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.UserBitShared.MajorFragmentProfile message) throws java.io.IOException { if(message.hasMajorFragmentId()) output.writeInt32(1, message.getMajorFragmentId(), false); for(com.dremio.exec.proto.UserBitShared.MinorFragmentProfile minorFragmentProfile : message.getMinorFragmentProfileList()) output.writeObject(2, minorFragmentProfile, com.dremio.exec.proto.SchemaUserBitShared.MinorFragmentProfile.WRITE, true); for(com.dremio.exec.proto.UserBitShared.NodePhaseProfile nodePhaseProfile : message.getNodePhaseProfileList()) output.writeObject(3, nodePhaseProfile, com.dremio.exec.proto.SchemaUserBitShared.NodePhaseProfile.WRITE, true); } public boolean isInitialized(com.dremio.exec.proto.UserBitShared.MajorFragmentProfile message)