@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; }
/** * <code>repeated .exec.bit.control.NodePhaseStatus phase_status = 3;</code> */ public com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.Builder addPhaseStatusBuilder() { return getPhaseStatusFieldBuilder().addBuilder( com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.getDefaultInstance()); } /**
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt32(1, majorFragmentId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeInt64(2, maxMemoryUsed_); } getUnknownFields().writeTo(output); }
public void mergeFrom(io.protostuff.Input input, com.dremio.exec.proto.CoordExecRPC.NodeQueryStatus.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setId(input.mergeObject(com.dremio.exec.proto.UserBitShared.QueryId.newBuilder(), com.dremio.exec.proto.SchemaUserBitShared.QueryId.MERGE)); break; case 2: builder.setEndpoint(input.mergeObject(com.dremio.exec.proto.CoordinationProtos.NodeEndpoint.newBuilder(), com.dremio.exec.proto.SchemaCoordinationProtos.NodeEndpoint.MERGE)); break; case 3: builder.addPhaseStatus(input.mergeObject(com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.newBuilder(), com.dremio.exec.proto.SchemaCoordExecRPC.NodePhaseStatus.MERGE)); break; case 4: builder.setMaxMemoryUsed(input.readInt64()); break; case 5: builder.setTimeEnqueuedBeforeSubmitMs(input.readInt64()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(com.dremio.exec.proto.CoordExecRPC.NodeQueryStatus.Builder builder)
@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 com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus buildPartial() { com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus result = new com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.majorFragmentId_ = majorFragmentId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.maxMemoryUsed_ = maxMemoryUsed_; result.bitField0_ = to_bitField0_; onBuilt(); return result; }
public Builder toBuilder() { return newBuilder(this); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus prototype) {
public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, majorFragmentId_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(2, maxMemoryUsed_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; }
public com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus getDefaultInstanceForType() { return com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.getDefaultInstance(); }
public static Builder newBuilder(com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
/** * Return the status of the query's phase tracked by this ticket, on this node. */ NodePhaseStatus getStatus() { return NodePhaseStatus.newBuilder() .setMajorFragmentId(majorFragmentId) .setMaxMemoryUsed(getAllocator().getPeakMemoryAllocation()) .build(); } }
public com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.Builder newMessage() { return com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.newBuilder(); } public java.lang.String getFieldName(int number)
public void add(MajorFragmentProfile.Builder builder){ for(FragmentData data : fragments){ builder.addMinorFragmentProfile(data.getProfile()); } for (Map.Entry<NodeEndpoint, NodePhaseStatus> endpointStatus : perNodeStatus.entrySet()) { NodePhaseProfile nodePhaseProfile = NodePhaseProfile.newBuilder() .setEndpoint(endpointStatus.getKey()) .setMaxMemoryUsed(endpointStatus.getValue().getMaxMemoryUsed()) .build(); builder.addNodePhaseProfile(nodePhaseProfile); } }
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()); }
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)
/** * <code>repeated .exec.bit.control.NodePhaseStatus phase_status = 3;</code> */ public com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.Builder addPhaseStatusBuilder( int index) { return getPhaseStatusFieldBuilder().addBuilder( index, com.dremio.exec.proto.CoordExecRPC.NodePhaseStatus.getDefaultInstance()); } /**
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; }