@Override public MessageLite getResponseDefaultInstance(int rpcType) throws RpcException { switch (rpcType) { case RpcType.ACK_VALUE: return Ack.getDefaultInstance(); case RpcType.REQ_RECORD_BATCH_VALUE: return FragmentRecordBatch.getDefaultInstance(); case RpcType.REQ_STREAM_COMPLETE_VALUE: return FragmentStreamComplete.getDefaultInstance(); default: throw new UnsupportedOperationException(); } }
public Builder mergeFrom(com.dremio.exec.proto.ExecRPC.FragmentRecordBatch other) { if (other == com.dremio.exec.proto.ExecRPC.FragmentRecordBatch.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()); } if (other.hasArrowRecordBatch()) { setArrowRecordBatch(other.getArrowRecordBatch()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public com.dremio.exec.proto.ExecRPC.FragmentRecordBatch getDefaultInstanceForType() { return com.dremio.exec.proto.ExecRPC.FragmentRecordBatch.getDefaultInstance(); }
private RawFragmentBatch newBatch(int index) { ArrowBuf buffer = allocator.buffer(batchAllocateSize); buffer.setInt(0, index); return new RawFragmentBatch(FragmentRecordBatch.getDefaultInstance(), buffer, ackSender); }
/** * <code>optional bytes arrow_record_batch = 6;</code> */ public Builder clearArrowRecordBatch() { bitField0_ = (bitField0_ & ~0x00000020); arrowRecordBatch_ = getDefaultInstance().getArrowRecordBatch(); onChanged(); return this; }