Package org.apache.arrow.flight.sql.impl
Class FlightSql.ActionCreatePreparedStatementResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
org.apache.arrow.flight.sql.impl.FlightSql.ActionCreatePreparedStatementResult.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,FlightSql.ActionCreatePreparedStatementResultOrBuilder
- Enclosing class:
- FlightSql.ActionCreatePreparedStatementResult
public static final class FlightSql.ActionCreatePreparedStatementResult.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
implements FlightSql.ActionCreatePreparedStatementResultOrBuilder
Wrap the result of a "CreatePreparedStatement" or "CreatePreparedSubstraitPlan" action. The resultant PreparedStatement can be closed either: - Manually, through the "ClosePreparedStatement" action; - Automatically, by a server timeout. The result should be wrapped in a google.protobuf.Any message.Protobuf type
arrow.flight.protocol.sql.ActionCreatePreparedStatementResult
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
If a result set generating query was provided, dataset_schema contains the schema of the result set.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) If the query provided contained parameters, parameter_schema contains the schema of the expected parameters.Opaque handle for the prepared statement on the server.clone()
com.google.protobuf.ByteString
If a result set generating query was provided, dataset_schema contains the schema of the result set.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.ByteString
If the query provided contained parameters, parameter_schema contains the schema of the expected parameters.com.google.protobuf.ByteString
Opaque handle for the prepared statement on the server.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) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setDatasetSchema
(com.google.protobuf.ByteString value) If a result set generating query was provided, dataset_schema contains the schema of the result set.setParameterSchema
(com.google.protobuf.ByteString value) If the query provided contained parameters, parameter_schema contains the schema of the expected parameters.setPreparedStatementHandle
(com.google.protobuf.ByteString value) Opaque handle for the prepared statement on the server.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
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<FlightSql.ActionCreatePreparedStatementResult.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<FlightSql.ActionCreatePreparedStatementResult.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<FlightSql.ActionCreatePreparedStatementResult.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<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
setField
public FlightSql.ActionCreatePreparedStatementResult.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<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
clearField
public FlightSql.ActionCreatePreparedStatementResult.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<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
clearOneof
public FlightSql.ActionCreatePreparedStatementResult.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<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
setRepeatedField
public FlightSql.ActionCreatePreparedStatementResult.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<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
addRepeatedField
public FlightSql.ActionCreatePreparedStatementResult.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<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
mergeFrom
public FlightSql.ActionCreatePreparedStatementResult.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
mergeFrom
public FlightSql.ActionCreatePreparedStatementResult.Builder mergeFrom(FlightSql.ActionCreatePreparedStatementResult other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
mergeFrom
public FlightSql.ActionCreatePreparedStatementResult.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<FlightSql.ActionCreatePreparedStatementResult.Builder>
- Throws:
IOException
-
getPreparedStatementHandle
public com.google.protobuf.ByteString getPreparedStatementHandle()Opaque handle for the prepared statement on the server.
bytes prepared_statement_handle = 1;
- Specified by:
getPreparedStatementHandle
in interfaceFlightSql.ActionCreatePreparedStatementResultOrBuilder
- Returns:
- The preparedStatementHandle.
-
setPreparedStatementHandle
public FlightSql.ActionCreatePreparedStatementResult.Builder setPreparedStatementHandle(com.google.protobuf.ByteString value) Opaque handle for the prepared statement on the server.
bytes prepared_statement_handle = 1;
- Parameters:
value
- The preparedStatementHandle to set.- Returns:
- This builder for chaining.
-
clearPreparedStatementHandle
Opaque handle for the prepared statement on the server.
bytes prepared_statement_handle = 1;
- Returns:
- This builder for chaining.
-
getDatasetSchema
public com.google.protobuf.ByteString getDatasetSchema()If a result set generating query was provided, dataset_schema contains the schema of the result set. It should be an IPC-encapsulated Schema, as described in Schema.fbs. For some queries, the schema of the results may depend on the schema of the parameters. The server should provide its best guess as to the schema at this point. Clients must not assume that this schema, if provided, will be accurate.
bytes dataset_schema = 2;
- Specified by:
getDatasetSchema
in interfaceFlightSql.ActionCreatePreparedStatementResultOrBuilder
- Returns:
- The datasetSchema.
-
setDatasetSchema
public FlightSql.ActionCreatePreparedStatementResult.Builder setDatasetSchema(com.google.protobuf.ByteString value) If a result set generating query was provided, dataset_schema contains the schema of the result set. It should be an IPC-encapsulated Schema, as described in Schema.fbs. For some queries, the schema of the results may depend on the schema of the parameters. The server should provide its best guess as to the schema at this point. Clients must not assume that this schema, if provided, will be accurate.
bytes dataset_schema = 2;
- Parameters:
value
- The datasetSchema to set.- Returns:
- This builder for chaining.
-
clearDatasetSchema
If a result set generating query was provided, dataset_schema contains the schema of the result set. It should be an IPC-encapsulated Schema, as described in Schema.fbs. For some queries, the schema of the results may depend on the schema of the parameters. The server should provide its best guess as to the schema at this point. Clients must not assume that this schema, if provided, will be accurate.
bytes dataset_schema = 2;
- Returns:
- This builder for chaining.
-
getParameterSchema
public com.google.protobuf.ByteString getParameterSchema()If the query provided contained parameters, parameter_schema contains the schema of the expected parameters. It should be an IPC-encapsulated Schema, as described in Schema.fbs.
bytes parameter_schema = 3;
- Specified by:
getParameterSchema
in interfaceFlightSql.ActionCreatePreparedStatementResultOrBuilder
- Returns:
- The parameterSchema.
-
setParameterSchema
public FlightSql.ActionCreatePreparedStatementResult.Builder setParameterSchema(com.google.protobuf.ByteString value) If the query provided contained parameters, parameter_schema contains the schema of the expected parameters. It should be an IPC-encapsulated Schema, as described in Schema.fbs.
bytes parameter_schema = 3;
- Parameters:
value
- The parameterSchema to set.- Returns:
- This builder for chaining.
-
clearParameterSchema
If the query provided contained parameters, parameter_schema contains the schema of the expected parameters. It should be an IPC-encapsulated Schema, as described in Schema.fbs.
bytes parameter_schema = 3;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final FlightSql.ActionCreatePreparedStatementResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
mergeUnknownFields
public final FlightSql.ActionCreatePreparedStatementResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
-