Class CommandPreparedStatementQuery
Represents an instance of executing a prepared statement. Used in the command member of FlightDescriptor for the following RPC calls:
GetSchema: return the Arrow schema of the query. Fields on this schema may contain the following metadata:
- ARROW:FLIGHT:SQL:CATALOG_NAME - Table's catalog name
- ARROW:FLIGHT:SQL:DB_SCHEMA_NAME - Database schema name
- ARROW:FLIGHT:SQL:TABLE_NAME - Table name
- ARROW:FLIGHT:SQL:TYPE_NAME - The data source-specific name for the data type of the column.
- ARROW:FLIGHT:SQL:PRECISION - Column precision/size
- ARROW:FLIGHT:SQL:SCALE - Column scale/decimal digits if applicable
- ARROW:FLIGHT:SQL:IS_AUTO_INCREMENT - "1" indicates if the column is auto incremented, "0" otherwise.
- ARROW:FLIGHT:SQL:IS_CASE_SENSITIVE - "1" indicates if the column is case-sensitive, "0" otherwise.
- ARROW:FLIGHT:SQL:IS_READ_ONLY - "1" indicates if the column is read only, "0" otherwise.
- ARROW:FLIGHT:SQL:IS_SEARCHABLE - "1" indicates if the column is searchable via WHERE clause, "0" otherwise.
- ARROW:FLIGHT:SQL:REMARKS - A comment describing the column. This field has been added after all others, clients should be prepared to find it missing.
If the schema is retrieved after parameter values have been bound with DoPut, then the server should account for the parameters when determining the schema.
DoPut: bind parameter values. All of the bound parameter sets will be executed as a single atomic execution.
GetFlightInfo: execute the prepared statement instance.
public sealed class CommandPreparedStatementQuery : IMessage<CommandPreparedStatementQuery>, IEquatable<CommandPreparedStatementQuery>, IDeepCloneable<CommandPreparedStatementQuery>, IBufferMessage, IMessage
- Inheritance
-
CommandPreparedStatementQuery
- Implements
-
IMessage<CommandPreparedStatementQuery>IDeepCloneable<CommandPreparedStatementQuery>IBufferMessageIMessage
- Inherited Members
- Extension Methods
Constructors
CommandPreparedStatementQuery()
public CommandPreparedStatementQuery()
CommandPreparedStatementQuery(CommandPreparedStatementQuery)
public CommandPreparedStatementQuery(CommandPreparedStatementQuery other)
Parameters
Fields
PreparedStatementHandleFieldNumber
Field number for the "prepared_statement_handle" field.
public const int PreparedStatementHandleFieldNumber = 1
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<CommandPreparedStatementQuery> Parser { get; }
Property Value
- MessageParser<CommandPreparedStatementQuery>
PreparedStatementHandle
Opaque handle for the prepared statement on the server.
public ByteString PreparedStatementHandle { get; set; }
Property Value
- ByteString
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public CommandPreparedStatementQuery Clone()
Returns
- CommandPreparedStatementQuery
A deep clone of this object.
Equals(CommandPreparedStatementQuery)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(CommandPreparedStatementQuery other)
Parameters
other
CommandPreparedStatementQueryAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
other
object
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CommandPreparedStatementQuery)
Merges the given message into this one.
public void MergeFrom(CommandPreparedStatementQuery other)
Parameters
Remarks
See the user guide for precise merge semantics.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
input
CodedInputStream
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
output
CodedOutputStreamCoded output stream to write the data to. Must not be null.