public void handle(FragmentStreamComplete completion) { Preconditions.checkState(fragmentStarted, formatError("stream completion", completion.getSendingMajorFragmentId(), completion.getSendingMinorFragmentId())); if (executor != null) { executor.getListener().handle(completion); } // A missing executor means it already terminated. We can simply drop this message. }
hash = (53 * hash) + getSendingMajorFragmentId();
public Builder mergeFrom(com.dremio.exec.proto.ExecRPC.FragmentStreamComplete other) { if (other == com.dremio.exec.proto.ExecRPC.FragmentStreamComplete.getDefaultInstance()) return this; if (other.hasQueryId()) { mergeQueryId(other.getQueryId()); } if (other.hasReceivingMajorFragmentId()) { setReceivingMajorFragmentId(other.getReceivingMajorFragmentId()); } if (!other.receivingMinorFragmentId_.isEmpty()) { if (receivingMinorFragmentId_.isEmpty()) { receivingMinorFragmentId_ = other.receivingMinorFragmentId_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureReceivingMinorFragmentIdIsMutable(); receivingMinorFragmentId_.addAll(other.receivingMinorFragmentId_); } onChanged(); } if (other.hasSendingMajorFragmentId()) { setSendingMajorFragmentId(other.getSendingMajorFragmentId()); } if (other.hasSendingMinorFragmentId()) { setSendingMinorFragmentId(other.getSendingMinorFragmentId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
result = result && (hasSendingMajorFragmentId() == other.hasSendingMajorFragmentId()); if (hasSendingMajorFragmentId()) { result = result && (getSendingMajorFragmentId() == other.getSendingMajorFragmentId());
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.ExecRPC.FragmentStreamComplete message) throws java.io.IOException { if(message.hasQueryId()) output.writeObject(1, message.getQueryId(), com.dremio.exec.proto.SchemaUserBitShared.QueryId.WRITE, false); if(message.hasReceivingMajorFragmentId()) output.writeInt32(2, message.getReceivingMajorFragmentId(), false); for(int receivingMinorFragmentId : message.getReceivingMinorFragmentIdList()) output.writeInt32(3, receivingMinorFragmentId, true); if(message.hasSendingMajorFragmentId()) output.writeInt32(4, message.getSendingMajorFragmentId(), false); if(message.hasSendingMinorFragmentId()) output.writeInt32(5, message.getSendingMinorFragmentId(), false); } public boolean isInitialized(com.dremio.exec.proto.ExecRPC.FragmentStreamComplete message)
public void completionArrived(final FragmentStreamComplete completion) { try (AutoCloseableLock lock = sharedIncomingBatchLock.open()) { if (closed) { return; } final DataCollector collector = collector(completion.getSendingMajorFragmentId()); synchronized (collector) { collector.streamCompleted(completion.getSendingMinorFragmentId()); } } }