bitField0_ = (bitField0_ & ~0x00001000); if (contextBuilder_ == null) { context_ = com.dremio.exec.proto.CoordExecRPC.QueryContextInformation.getDefaultInstance(); } else { contextBuilder_.clear();
/** * <code>optional .exec.bit.control.QueryContextInformation context = 16;</code> */ public Builder clearContext() { if (contextBuilder_ == null) { context_ = com.dremio.exec.proto.CoordExecRPC.QueryContextInformation.getDefaultInstance(); onChanged(); } else { contextBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); return this; } /**
private void initFields() { handle_ = com.dremio.exec.proto.ExecProtos.FragmentHandle.getDefaultInstance(); networkCost_ = 0F; cpuCost_ = 0F; diskCost_ = 0F; memoryCost_ = 0F; fragmentJson_ = com.google.protobuf.ByteString.EMPTY; leafFragment_ = false; assignment_ = com.dremio.exec.proto.CoordinationProtos.NodeEndpoint.getDefaultInstance(); foreman_ = com.dremio.exec.proto.CoordinationProtos.NodeEndpoint.getDefaultInstance(); memInitial_ = 20000000L; memMax_ = 2000000000L; credentials_ = com.dremio.exec.proto.UserBitShared.UserCredentials.getDefaultInstance(); optionsJson_ = com.google.protobuf.ByteString.EMPTY; context_ = com.dremio.exec.proto.CoordExecRPC.QueryContextInformation.getDefaultInstance(); collector_ = java.util.Collections.emptyList(); priority_ = com.dremio.exec.proto.CoordExecRPC.FragmentPriority.getDefaultInstance(); fragmentCodec_ = com.dremio.exec.proto.CoordExecRPC.FragmentCodec.NONE; allAssignment_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1;
public Builder mergeFrom(com.dremio.exec.proto.CoordExecRPC.QueryContextInformation other) { if (other == com.dremio.exec.proto.CoordExecRPC.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.hasPriority()) { mergePriority(other.getPriority()); } if (other.hasQueryMaxAllocation()) { setQueryMaxAllocation(other.getQueryMaxAllocation()); } if (other.hasExtra()) { setExtra(other.getExtra()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional .exec.bit.control.QueryContextInformation context = 16;</code> */ public Builder mergeContext(com.dremio.exec.proto.CoordExecRPC.QueryContextInformation value) { if (contextBuilder_ == null) { if (((bitField0_ & 0x00002000) == 0x00002000) && context_ != com.dremio.exec.proto.CoordExecRPC.QueryContextInformation.getDefaultInstance()) { context_ = com.dremio.exec.proto.CoordExecRPC.QueryContextInformation.newBuilder(context_).mergeFrom(value).buildPartial(); } else { context_ = value; } onChanged(); } else { contextBuilder_.mergeFrom(value); } bitField0_ |= 0x00002000; return this; } /**
public void setup() { try { storeProvider = new LocalKVStoreProvider(DremioTest.CLASSPATH_SCAN_RESULT, null, true, false); storeProvider.start(); final Provider<KVStoreProvider> storeProviderProvider = new Provider<KVStoreProvider>() { @Override public KVStoreProvider get() { return storeProvider; } }; provider = new KVPersistentStoreProvider(storeProviderProvider); options = new SystemOptionManager(result, persistence, provider); options.init(); compiler = new CodeCompiler(config, options); ec = new ExecutionControls(options, NodeEndpoint.getDefaultInstance()); functionLookup = new FunctionImplementationRegistry(config, result); contextInformation = new ContextInformationImpl(UserCredentials.getDefaultInstance(), QueryContextInformation.getDefaultInstance()); }catch(Exception e){ throw new RuntimeException(e); } }
public com.dremio.exec.proto.CoordExecRPC.QueryContextInformation getDefaultInstanceForType() { return com.dremio.exec.proto.CoordExecRPC.QueryContextInformation.getDefaultInstance(); }
/** * <code>optional string default_schema_name = 3;</code> * * <pre> * default schema in current session when the query is submitted * </pre> */ public Builder clearDefaultSchemaName() { bitField0_ = (bitField0_ & ~0x00000004); defaultSchemaName_ = getDefaultInstance().getDefaultSchemaName(); onChanged(); return this; } /**
/** * <code>optional bytes extra = 6;</code> */ public Builder clearExtra() { bitField0_ = (bitField0_ & ~0x00000020); extra_ = getDefaultInstance().getExtra(); onChanged(); return this; }