public void updateNodeQueryStatus(NodeQueryStatus status) { NodeEndpoint endpoint = status.getEndpoint(); for (NodePhaseStatus phaseStatus : status.getPhaseStatusList()) { reporters.get(phaseStatus.getMajorFragmentId()).updatePhaseStatus(endpoint, phaseStatus); } nodeReporters.get(endpoint) .updateMaxMemory(status.getMaxMemoryUsed()) .updateTimeEnqueuedBeforeSubmit(status.getTimeEnqueuedBeforeSubmitMs()); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMajorFragmentId()) { hash = (37 * hash) + MAJOR_FRAGMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getMajorFragmentId(); } if (hasMaxMemoryUsed()) { hash = (37 * hash) + MAX_MEMORY_USED_FIELD_NUMBER; hash = (53 * hash) + hashLong(getMaxMemoryUsed()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus)) { return super.equals(obj); } com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus other = (com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus) obj; boolean result = true; result = result && (hasMajorFragmentId() == other.hasMajorFragmentId()); if (hasMajorFragmentId()) { result = result && (getMajorFragmentId() == other.getMajorFragmentId()); } result = result && (hasMaxMemoryUsed() == other.hasMaxMemoryUsed()); if (hasMaxMemoryUsed()) { result = result && (getMaxMemoryUsed() == other.getMaxMemoryUsed()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus message) throws java.io.IOException { if(message.hasMajorFragmentId()) output.writeInt32(1, message.getMajorFragmentId(), false); if(message.hasMaxMemoryUsed()) output.writeInt64(2, message.getMaxMemoryUsed(), false); } public boolean isInitialized(com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus message)
public Builder mergeFrom(com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus other) { if (other == com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.getDefaultInstance()) return this; if (other.hasMajorFragmentId()) { setMajorFragmentId(other.getMajorFragmentId()); } if (other.hasMaxMemoryUsed()) { setMaxMemoryUsed(other.getMaxMemoryUsed()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }