Module org.apache.arrow.flight.core
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.GeneratedMessage.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.GeneratedMessage.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 TypeMethodDescriptionbuild()clear()If a result set generating query was provided, dataset_schema contains the schema of the result set.If the query provided contained parameters, parameter_schema contains the schema of the expected parameters.Opaque handle for the prepared statement on the server.com.google.protobuf.ByteStringIf a result set generating query was provided, dataset_schema contains the schema of the result set.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringIf the query provided contained parameters, parameter_schema contains the schema of the expected parameters.com.google.protobuf.ByteStringOpaque handle for the prepared statement on the server.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public FlightSql.ActionCreatePreparedStatementResult.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
mergeFrom
public FlightSql.ActionCreatePreparedStatementResult.Builder mergeFrom(FlightSql.ActionCreatePreparedStatementResult other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
-
mergeFrom
public FlightSql.ActionCreatePreparedStatementResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getPreparedStatementHandlein 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:
getDatasetSchemain 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:
getParameterSchemain 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.
-