private List<Entry> buildTree(Map<Long, Entry> procMap) { List<Entry> rootEntries = new ArrayList<>(); procMap.values().forEach(entry -> { if (!entry.proc.hasParentId()) { rootEntries.add(entry); } else { Entry parentEntry = procMap.get(entry.proc.getParentId()); // For a valid procedure this should not be null. We will log the error later if it is null, // as it will not be referenced by any root procedures. if (parentEntry != null) { parentEntry.subProcs.add(entry); } } }); return rootEntries; }
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Procedure(pid="); sb.append(proc.getProcId()); sb.append(", ppid="); sb.append(proc.hasParentId() ? proc.getParentId() : Procedure.NO_PROC_ID); sb.append(", class="); sb.append(proc.getClassName()); sb.append(")"); return sb.toString(); } }
setParentId(other.getParentId());
result = result && (getParentId() == other.getParentId());
setParentId(other.getParentId());
hash = (37 * hash) + PARENT_ID_FIELD_NUMBER; hash = (53 * hash) + org.apache.hbase.thirdparty.com.google.protobuf.Internal.hashLong( getParentId());
proc.setParentProcId(proto.getParentId());
proc.setParentProcId(proto.getParentId());
private List<Entry> buildTree(Map<Long, Entry> procMap) { List<Entry> rootEntries = new ArrayList<>(); procMap.values().forEach(entry -> { if (!entry.proc.hasParentId()) { rootEntries.add(entry); } else { Entry parentEntry = procMap.get(entry.proc.getParentId()); // For a valid procedure this should not be null. We will log the error later if it is null, // as it will not be referenced by any root procedures. if (parentEntry != null) { parentEntry.subProcs.add(entry); } } }); return rootEntries; }
public long getParentId() { return proto.getParentId(); }
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Procedure(pid="); sb.append(proc.getProcId()); sb.append(", ppid="); sb.append(proc.hasParentId() ? proc.getParentId() : Procedure.NO_PROC_ID); sb.append(", class="); sb.append(proc.getClassName()); sb.append(")"); return sb.toString(); } }
hash = (37 * hash) + PARENT_ID_FIELD_NUMBER; hash = (53 * hash) + org.apache.hbase.thirdparty.com.google.protobuf.Internal.hashLong( getParentId());
result = result && (getParentId() == other.getParentId());
proc.setParentProcId(proto.getParentId());