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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
    • getDefaultInstanceForType

      public FlightSql.ActionCreatePreparedStatementResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public FlightSql.ActionCreatePreparedStatementResult.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FlightSql.ActionCreatePreparedStatementResult.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface FlightSql.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

      public FlightSql.ActionCreatePreparedStatementResult.Builder 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 interface FlightSql.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 interface FlightSql.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.