@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasMinorFragment()) { hash = (37 * hash) + MINOR_FRAGMENT_FIELD_NUMBER; hash = (53 * hash) + getMinorFragment(); } if (hasEndpoint()) { hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getEndpoint().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
completionMessages[index] = new CompletionMessageSender(fragment.getEndpoint(), fragment.getMinorFragment()); index++; try (AutoCloseables.RollbackCloseable rollbackCloseable = new AutoCloseables.RollbackCloseable()){ for (IncomingMinorFragment fragment : fragments) { final String name = String.format("nway-recv-%s-%s:%d:%d", spooling ? "spool" : "mem", fragment.getEndpoint().getAddress(), collector.getOppositeMajorFragmentId(), fragment.getMinorFragment()); final SharedResource resource = resourceGroup.createResource(name, spooling ? SharedResourceType.NWAY_RECV_SPOOL_BUFFER : SharedResourceType.NWAY_RECV_MEM_BUFFER); final RawBatchBuffer buffer;
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment)) { return super.equals(obj); } com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment other = (com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment) obj; boolean result = true; result = result && (hasMinorFragment() == other.hasMinorFragment()); if (hasMinorFragment()) { result = result && (getMinorFragment() == other.getMinorFragment()); } result = result && (hasEndpoint() == other.hasEndpoint()); if (hasEndpoint()) { result = result && getEndpoint() .equals(other.getEndpoint()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
public Builder mergeFrom(com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment other) { if (other == com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment.getDefaultInstance()) return this; if (other.hasMinorFragment()) { setMinorFragment(other.getMinorFragment()); } if (other.hasEndpoint()) { mergeEndpoint(other.getEndpoint()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment message) throws java.io.IOException { if(message.hasMinorFragment()) output.writeInt32(1, message.getMinorFragment(), false); if(message.hasEndpoint()) output.writeObject(2, message.getEndpoint(), com.dremio.exec.proto.SchemaCoordinationProtos.NodeEndpoint.WRITE, false); } public boolean isInitialized(com.dremio.exec.proto.CoordExecRPC.IncomingMinorFragment message)