/** * <code>optional .exec.bit.control.QueryContextInformation context = 16;</code> */ public Builder setContext( org.apache.drill.exec.proto.BitControl.QueryContextInformation.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /**
subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial();
subBuilder.mergeFrom(context_); context_ = subBuilder.buildPartial();
public void mergeFrom(com.dyuproject.protostuff.Input input, org.apache.drill.exec.proto.BitControl.QueryContextInformation.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setQueryStartTime(input.readInt64()); break; case 2: builder.setTimeZone(input.readInt32()); break; case 3: builder.setDefaultSchemaName(input.readString()); break; case 4: builder.setSessionId(input.readString()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(org.apache.drill.exec.proto.BitControl.QueryContextInformation.Builder builder)
/** * <code>optional .exec.bit.control.QueryContextInformation context = 16;</code> */ public Builder mergeContext(org.apache.drill.exec.proto.BitControl.QueryContextInformation value) { if (contextBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && context_ != org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance()) { context_ = org.apache.drill.exec.proto.BitControl.QueryContextInformation.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; return this; } /**
public Builder mergeFrom(org.apache.drill.exec.proto.BitControl.QueryContextInformation other) { if (other == org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance()) return this; if (other.hasQueryStartTime()) { setQueryStartTime(other.getQueryStartTime()); } if (other.hasTimeZone()) { setTimeZone(other.getTimeZone()); } if (other.hasDefaultSchemaName()) { bitField0_ |= 0x00000004; defaultSchemaName_ = other.defaultSchemaName_; onChanged(); } if (other.hasSessionId()) { bitField0_ |= 0x00000008; sessionId_ = other.sessionId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private Builder() { maybeForceBuilderInitialization(); }
private static Builder create() { return new Builder(); }
/** * Create {@link org.apache.drill.exec.proto.BitControl.QueryContextInformation} with given <i>defaultSchemaName</i>. Rest of the members of the * QueryContextInformation is derived from the current state of the process. * * @param defaultSchemaName * @return A {@link org.apache.drill.exec.proto.BitControl.QueryContextInformation} with given <i>defaultSchemaName</i>. */ public static QueryContextInformation createQueryContextInfo(final String defaultSchemaName, final String sessionId) { final long queryStartTime = System.currentTimeMillis(); final int timeZone = DateUtility.getIndex(System.getProperty("user.timezone")); return QueryContextInformation.newBuilder() .setDefaultSchemaName(defaultSchemaName) .setQueryStartTime(queryStartTime) .setTimeZone(timeZone) .setSessionId(sessionId) .build(); }
/** * <code>optional .exec.bit.control.QueryContextInformation context = 16;</code> */ public Builder setContext( org.apache.drill.exec.proto.BitControl.QueryContextInformation.Builder builderForValue) { if (contextBuilder_ == null) { context_ = builderForValue.build(); onChanged(); } else { contextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00002000; return this; } /**
public Builder clone() { return create().mergeFrom(buildPartial()); }
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
public org.apache.drill.exec.proto.BitControl.QueryContextInformation build() { org.apache.drill.exec.proto.BitControl.QueryContextInformation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public boolean isInitialized(org.apache.drill.exec.proto.BitControl.QueryContextInformation.Builder builder) { return builder.isInitialized(); } public org.apache.drill.exec.proto.BitControl.QueryContextInformation.Builder newMessage()
@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.BitControl.QueryContextInformation.Builder builder) throws java.io.IOException { for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this)) { switch(number) { case 0: return; case 1: builder.setQueryStartTime(input.readInt64()); break; case 2: builder.setTimeZone(input.readInt32()); break; case 3: builder.setDefaultSchemaName(input.readString()); break; case 4: builder.setSessionId(input.readString()); break; default: input.handleUnknownField(number, this); } } } public boolean isInitialized(org.apache.drill.exec.proto.BitControl.QueryContextInformation.Builder builder)
/** * <code>optional .exec.bit.control.QueryContextInformation context = 16;</code> */ public Builder mergeContext(org.apache.drill.exec.proto.BitControl.QueryContextInformation value) { if (contextBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && context_ != org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance()) { context_ = org.apache.drill.exec.proto.BitControl.QueryContextInformation.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; return this; } /**
public Builder mergeFrom(org.apache.drill.exec.proto.BitControl.QueryContextInformation other) { if (other == org.apache.drill.exec.proto.BitControl.QueryContextInformation.getDefaultInstance()) return this; if (other.hasQueryStartTime()) { setQueryStartTime(other.getQueryStartTime()); } if (other.hasTimeZone()) { setTimeZone(other.getTimeZone()); } if (other.hasDefaultSchemaName()) { bitField0_ |= 0x00000004; defaultSchemaName_ = other.defaultSchemaName_; onChanged(); } if (other.hasSessionId()) { bitField0_ |= 0x00000008; sessionId_ = other.sessionId_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
private Builder() { maybeForceBuilderInitialization(); }
private static Builder create() { return new Builder(); }