Package org.apache.drill.exec.proto
Class UserProtos.RunQuery.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
org.apache.drill.exec.proto.UserProtos.RunQuery.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,UserProtos.RunQueryOrBuilder
- Enclosing class:
- UserProtos.RunQuery
public static final class UserProtos.RunQuery.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
implements UserProtos.RunQueryOrBuilder
Request message for running a query.Protobuf type
exec.user.RunQuery
-
Method Summary
Modifier and TypeMethodDescriptionaddAllFragments
(Iterable<? extends BitControl.PlanFragment> values) Input for query type EXECUTION.addFragments
(int index, BitControl.PlanFragment value) Input for query type EXECUTION.addFragments
(int index, BitControl.PlanFragment.Builder builderForValue) Input for query type EXECUTION.Input for query type EXECUTION.addFragments
(BitControl.PlanFragment.Builder builderForValue) Input for query type EXECUTION.Input for query type EXECUTION.addFragmentsBuilder
(int index) Input for query type EXECUTION.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Input for indicating the limit on a query's result set.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Input for query type EXECUTION.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Input for query type LOGICAL, PHYSICAL or SQL.Input for query type PREPARED_STATEMENT.optional .exec.user.QueryResultsMode results_mode = 1;
optional .exec.shared.QueryType type = 2;
clone()
int
Input for indicating the limit on a query's result set.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getFragments
(int index) Input for query type EXECUTION.getFragmentsBuilder
(int index) Input for query type EXECUTION.Input for query type EXECUTION.int
Input for query type EXECUTION.Input for query type EXECUTION.getFragmentsOrBuilder
(int index) Input for query type EXECUTION.List<? extends BitControl.PlanFragmentOrBuilder>
Input for query type EXECUTION.getPlan()
Input for query type LOGICAL, PHYSICAL or SQL.com.google.protobuf.ByteString
Input for query type LOGICAL, PHYSICAL or SQL.Input for query type PREPARED_STATEMENT.Input for query type PREPARED_STATEMENT.Input for query type PREPARED_STATEMENT.optional .exec.user.QueryResultsMode results_mode = 1;
getType()
optional .exec.shared.QueryType type = 2;
boolean
Input for indicating the limit on a query's result set.boolean
hasPlan()
Input for query type LOGICAL, PHYSICAL or SQL.boolean
Input for query type PREPARED_STATEMENT.boolean
optional .exec.user.QueryResultsMode results_mode = 1;
boolean
hasType()
optional .exec.shared.QueryType type = 2;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(UserProtos.RunQuery other) Input for query type PREPARED_STATEMENT.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeFragments
(int index) Input for query type EXECUTION.setAutolimitRowcount
(int value) Input for indicating the limit on a query's result set.setFragments
(int index, BitControl.PlanFragment value) Input for query type EXECUTION.setFragments
(int index, BitControl.PlanFragment.Builder builderForValue) Input for query type EXECUTION.Input for query type LOGICAL, PHYSICAL or SQL.setPlanBytes
(com.google.protobuf.ByteString value) Input for query type LOGICAL, PHYSICAL or SQL.Input for query type PREPARED_STATEMENT.setPreparedStatementHandle
(UserProtos.PreparedStatementHandle.Builder builderForValue) Input for query type PREPARED_STATEMENT.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) optional .exec.user.QueryResultsMode results_mode = 1;
setType
(UserBitShared.QueryType value) optional .exec.shared.QueryType type = 2;
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
-
setField
public UserProtos.RunQuery.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
-
clearField
public UserProtos.RunQuery.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
-
clearOneof
public UserProtos.RunQuery.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
-
setRepeatedField
public UserProtos.RunQuery.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
-
addRepeatedField
public UserProtos.RunQuery.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UserProtos.RunQuery.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
-
mergeFrom
public UserProtos.RunQuery.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UserProtos.RunQuery.Builder>
- Throws:
IOException
-
hasResultsMode
public boolean hasResultsMode()optional .exec.user.QueryResultsMode results_mode = 1;
- Specified by:
hasResultsMode
in interfaceUserProtos.RunQueryOrBuilder
- Returns:
- Whether the resultsMode field is set.
-
getResultsMode
optional .exec.user.QueryResultsMode results_mode = 1;
- Specified by:
getResultsMode
in interfaceUserProtos.RunQueryOrBuilder
- Returns:
- The resultsMode.
-
setResultsMode
optional .exec.user.QueryResultsMode results_mode = 1;
- Parameters:
value
- The resultsMode to set.- Returns:
- This builder for chaining.
-
clearResultsMode
optional .exec.user.QueryResultsMode results_mode = 1;
- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()optional .exec.shared.QueryType type = 2;
- Specified by:
hasType
in interfaceUserProtos.RunQueryOrBuilder
- Returns:
- Whether the type field is set.
-
getType
optional .exec.shared.QueryType type = 2;
- Specified by:
getType
in interfaceUserProtos.RunQueryOrBuilder
- Returns:
- The type.
-
clearType
optional .exec.shared.QueryType type = 2;
- Returns:
- This builder for chaining.
-
hasPlan
public boolean hasPlan()Input for query type LOGICAL, PHYSICAL or SQL.
optional string plan = 3;
- Specified by:
hasPlan
in interfaceUserProtos.RunQueryOrBuilder
- Returns:
- Whether the plan field is set.
-
getPlan
Input for query type LOGICAL, PHYSICAL or SQL.
optional string plan = 3;
- Specified by:
getPlan
in interfaceUserProtos.RunQueryOrBuilder
- Returns:
- The plan.
-
getPlanBytes
public com.google.protobuf.ByteString getPlanBytes()Input for query type LOGICAL, PHYSICAL or SQL.
optional string plan = 3;
- Specified by:
getPlanBytes
in interfaceUserProtos.RunQueryOrBuilder
- Returns:
- The bytes for plan.
-
setPlan
Input for query type LOGICAL, PHYSICAL or SQL.
optional string plan = 3;
- Parameters:
value
- The plan to set.- Returns:
- This builder for chaining.
-
clearPlan
Input for query type LOGICAL, PHYSICAL or SQL.
optional string plan = 3;
- Returns:
- This builder for chaining.
-
setPlanBytes
Input for query type LOGICAL, PHYSICAL or SQL.
optional string plan = 3;
- Parameters:
value
- The bytes for plan to set.- Returns:
- This builder for chaining.
-
getFragmentsList
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
- Specified by:
getFragmentsList
in interfaceUserProtos.RunQueryOrBuilder
-
getFragmentsCount
public int getFragmentsCount()Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
- Specified by:
getFragmentsCount
in interfaceUserProtos.RunQueryOrBuilder
-
getFragments
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
- Specified by:
getFragments
in interfaceUserProtos.RunQueryOrBuilder
-
setFragments
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
-
setFragments
public UserProtos.RunQuery.Builder setFragments(int index, BitControl.PlanFragment.Builder builderForValue) Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
-
addFragments
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
-
addFragments
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
-
addFragments
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
-
addFragments
public UserProtos.RunQuery.Builder addFragments(int index, BitControl.PlanFragment.Builder builderForValue) Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
-
addAllFragments
public UserProtos.RunQuery.Builder addAllFragments(Iterable<? extends BitControl.PlanFragment> values) Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
-
clearFragments
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
-
removeFragments
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
-
getFragmentsBuilder
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
-
getFragmentsOrBuilder
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
- Specified by:
getFragmentsOrBuilder
in interfaceUserProtos.RunQueryOrBuilder
-
getFragmentsOrBuilderList
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
- Specified by:
getFragmentsOrBuilderList
in interfaceUserProtos.RunQueryOrBuilder
-
addFragmentsBuilder
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
-
addFragmentsBuilder
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
-
getFragmentsBuilderList
Input for query type EXECUTION. Input is a set of executable fragments.
repeated .exec.bit.control.PlanFragment fragments = 4;
-
hasPreparedStatementHandle
public boolean hasPreparedStatementHandle()Input for query type PREPARED_STATEMENT. Input is a prepared statement handle to state on server side which is returned in response to CreatePreparedStatementReq.
optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
- Specified by:
hasPreparedStatementHandle
in interfaceUserProtos.RunQueryOrBuilder
- Returns:
- Whether the preparedStatementHandle field is set.
-
getPreparedStatementHandle
Input for query type PREPARED_STATEMENT. Input is a prepared statement handle to state on server side which is returned in response to CreatePreparedStatementReq.
optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
- Specified by:
getPreparedStatementHandle
in interfaceUserProtos.RunQueryOrBuilder
- Returns:
- The preparedStatementHandle.
-
setPreparedStatementHandle
public UserProtos.RunQuery.Builder setPreparedStatementHandle(UserProtos.PreparedStatementHandle value) Input for query type PREPARED_STATEMENT. Input is a prepared statement handle to state on server side which is returned in response to CreatePreparedStatementReq.
optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
-
setPreparedStatementHandle
public UserProtos.RunQuery.Builder setPreparedStatementHandle(UserProtos.PreparedStatementHandle.Builder builderForValue) Input for query type PREPARED_STATEMENT. Input is a prepared statement handle to state on server side which is returned in response to CreatePreparedStatementReq.
optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
-
mergePreparedStatementHandle
public UserProtos.RunQuery.Builder mergePreparedStatementHandle(UserProtos.PreparedStatementHandle value) Input for query type PREPARED_STATEMENT. Input is a prepared statement handle to state on server side which is returned in response to CreatePreparedStatementReq.
optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
-
clearPreparedStatementHandle
Input for query type PREPARED_STATEMENT. Input is a prepared statement handle to state on server side which is returned in response to CreatePreparedStatementReq.
optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
-
getPreparedStatementHandleBuilder
Input for query type PREPARED_STATEMENT. Input is a prepared statement handle to state on server side which is returned in response to CreatePreparedStatementReq.
optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
-
getPreparedStatementHandleOrBuilder
Input for query type PREPARED_STATEMENT. Input is a prepared statement handle to state on server side which is returned in response to CreatePreparedStatementReq.
optional .exec.user.PreparedStatementHandle prepared_statement_handle = 5;
- Specified by:
getPreparedStatementHandleOrBuilder
in interfaceUserProtos.RunQueryOrBuilder
-
hasAutolimitRowcount
public boolean hasAutolimitRowcount()Input for indicating the limit on a query's result set.
optional int32 autolimit_rowcount = 6;
- Specified by:
hasAutolimitRowcount
in interfaceUserProtos.RunQueryOrBuilder
- Returns:
- Whether the autolimitRowcount field is set.
-
getAutolimitRowcount
public int getAutolimitRowcount()Input for indicating the limit on a query's result set.
optional int32 autolimit_rowcount = 6;
- Specified by:
getAutolimitRowcount
in interfaceUserProtos.RunQueryOrBuilder
- Returns:
- The autolimitRowcount.
-
setAutolimitRowcount
Input for indicating the limit on a query's result set.
optional int32 autolimit_rowcount = 6;
- Parameters:
value
- The autolimitRowcount to set.- Returns:
- This builder for chaining.
-
clearAutolimitRowcount
Input for indicating the limit on a query's result set.
optional int32 autolimit_rowcount = 6;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final UserProtos.RunQuery.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
-
mergeUnknownFields
public final UserProtos.RunQuery.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.RunQuery.Builder>
-