/** * <code>optional .exec.shared.RecordBatchDef def = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder getDefBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDefFieldBuilder().getBuilder(); } /**
/** * <code>optional .exec.shared.RecordBatchDef def = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.RecordBatchDef, org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder, org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder> getDefFieldBuilder() { if (defBuilder_ == null) { defBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.RecordBatchDef, org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder, org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder>( def_, getParentForChildren(), isClean()); def_ = null; } return defBuilder_; }
.setQueryId(context.getHandle().getQueryId()) .setRowCount(0) .setDef(RecordBatchDef.getDefaultInstance()) .build(); batch = new QueryWritableBatch(header);
public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.UserBitShared.QueryData.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setQueryId(input.mergeObject(org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(), org.apache.drill.exec.proto.SchemaUserBitShared.QueryId.MERGE)); break; case 2: builder.setRowCount(input.readInt32()); break; case 3: builder.setDef(input.mergeObject(org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.newBuilder(), org.apache.drill.exec.proto.SchemaUserBitShared.RecordBatchDef.MERGE)); break; case 4: builder.setAffectedRowsCount(input.readInt32()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(org.apache.drill.exec.proto.UserBitShared.QueryData.Builder builder)
/** * <code>optional .exec.shared.RecordBatchDef def = 3;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.RecordBatchDef, org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder, org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder> getDefFieldBuilder() { if (defBuilder_ == null) { defBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.RecordBatchDef, org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder, org.apache.drill.exec.proto.UserBitShared.RecordBatchDefOrBuilder>( def_, getParentForChildren(), isClean()); def_ = null; } return defBuilder_; }
public Builder mergeFrom(org.apache.drill.exec.proto.UserBitShared.QueryData other) { if (other == org.apache.drill.exec.proto.UserBitShared.QueryData.getDefaultInstance()) return this; if (other.hasQueryId()) { mergeQueryId(other.getQueryId()); } if (other.hasRowCount()) { setRowCount(other.getRowCount()); } if (other.hasDef()) { mergeDef(other.getDef()); } if (other.hasAffectedRowsCount()) { setAffectedRowsCount(other.getAffectedRowsCount()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> getQueryIdFieldBuilder() { if (queryIdBuilder_ == null) { queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>( queryId_, getParentForChildren(), isClean()); queryId_ = null; } return queryIdBuilder_; }
public Builder clone() { return create().mergeFrom(buildPartial()); }
private static Builder create() { return new Builder(); }
private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getQueryIdFieldBuilder(); getDefFieldBuilder(); } } private static Builder create() {
public QueryWritableBatch convertNext() { WritableBatch w = batch.getWritableBatch().transfer(allocator); QueryData.Builder builder = QueryData.newBuilder() .setQueryId(queryId) .setRowCount(batch.getRecordCount()) .setDef(w.getDef()); if (!options.getBoolean(ExecConstants.RETURN_RESULT_SET_FOR_DDL)) { int count = w.getDef().getAffectedRowsCount(); builder.setAffectedRowsCount(count == -1 ? 0 : count); } return new QueryWritableBatch(builder.build(), w.getBuffers()); } }
public org.apache.drill.exec.proto.UserBitShared.QueryData build() { org.apache.drill.exec.proto.UserBitShared.QueryData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <code>optional .exec.shared.RecordBatchDef def = 3;</code> */ public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder getDefBuilder() { bitField0_ |= 0x00000004; onChanged(); return getDefFieldBuilder().getBuilder(); } /**
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.UserBitShared.QueryData.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setQueryId(input.mergeObject(org.apache.drill.exec.proto.UserBitShared.QueryId.newBuilder(), org.apache.drill.exec.proto.SchemaUserBitShared.QueryId.MERGE)); break; case 2: builder.setRowCount(input.readInt32()); break; case 3: builder.setDef(input.mergeObject(org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.newBuilder(), org.apache.drill.exec.proto.SchemaUserBitShared.RecordBatchDef.MERGE)); break; case 4: builder.setAffectedRowsCount(input.readInt32()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(org.apache.drill.exec.proto.UserBitShared.QueryData.Builder builder)
public Builder mergeFrom(org.apache.drill.exec.proto.UserBitShared.QueryData other) { if (other == org.apache.drill.exec.proto.UserBitShared.QueryData.getDefaultInstance()) return this; if (other.hasQueryId()) { mergeQueryId(other.getQueryId()); } if (other.hasRowCount()) { setRowCount(other.getRowCount()); } if (other.hasDef()) { mergeDef(other.getDef()); } if (other.hasAffectedRowsCount()) { setAffectedRowsCount(other.getAffectedRowsCount()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ private com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder> getQueryIdFieldBuilder() { if (queryIdBuilder_ == null) { queryIdBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.apache.drill.exec.proto.UserBitShared.QueryId, org.apache.drill.exec.proto.UserBitShared.QueryId.Builder, org.apache.drill.exec.proto.UserBitShared.QueryIdOrBuilder>( queryId_, getParentForChildren(), isClean()); queryId_ = null; } return queryIdBuilder_; }
private static Builder create() { return new Builder(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
public org.apache.drill.exec.proto.UserBitShared.QueryData build() { org.apache.drill.exec.proto.UserBitShared.QueryData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }