Class CommandStatementIngest
Represents a bulk ingestion request. Used in the command member of FlightDescriptor for the the RPC call DoPut to cause the server load the contents of the stream's FlightData into the target destination.
public sealed class CommandStatementIngest : IMessage<CommandStatementIngest>, IEquatable<CommandStatementIngest>, IDeepCloneable<CommandStatementIngest>, IBufferMessage, IMessage
- Inheritance
-
CommandStatementIngest
- Implements
-
IMessage<CommandStatementIngest>IDeepCloneable<CommandStatementIngest>IBufferMessageIMessage
- Inherited Members
- Extension Methods
Constructors
CommandStatementIngest()
public CommandStatementIngest()
CommandStatementIngest(CommandStatementIngest)
public CommandStatementIngest(CommandStatementIngest other)
Parameters
other
CommandStatementIngest
Fields
CatalogFieldNumber
Field number for the "catalog" field.
public const int CatalogFieldNumber = 4
Field Value
OptionsFieldNumber
Field number for the "options" field.
public const int OptionsFieldNumber = 1000
Field Value
SchemaFieldNumber
Field number for the "schema" field.
public const int SchemaFieldNumber = 3
Field Value
TableDefinitionOptionsFieldNumber
Field number for the "table_definition_options" field.
public const int TableDefinitionOptionsFieldNumber = 1
Field Value
TableFieldNumber
Field number for the "table" field.
public const int TableFieldNumber = 2
Field Value
TemporaryFieldNumber
Field number for the "temporary" field.
public const int TemporaryFieldNumber = 5
Field Value
TransactionIdFieldNumber
Field number for the "transaction_id" field.
public const int TransactionIdFieldNumber = 6
Field Value
Properties
Catalog
The catalog of the destination table to load data into. If unset, a backend-specific default may be used.
public string Catalog { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasCatalog
Gets whether the "catalog" field is set
public bool HasCatalog { get; }
Property Value
HasSchema
Gets whether the "schema" field is set
public bool HasSchema { get; }
Property Value
HasTransactionId
Gets whether the "transaction_id" field is set
public bool HasTransactionId { get; }
Property Value
Options
Backend-specific options.
public MapField<string, string> Options { get; }
Property Value
Parser
public static MessageParser<CommandStatementIngest> Parser { get; }
Property Value
- MessageParser<CommandStatementIngest>
Schema
The db_schema of the destination table to load data into. If unset, a backend-specific default may be used.
public string Schema { get; set; }
Property Value
Table
The table to load data into.
public string Table { get; set; }
Property Value
TableDefinitionOptions
The behavior for handling the table definition.
public CommandStatementIngest.Types.TableDefinitionOptions TableDefinitionOptions { get; set; }
Property Value
Temporary
Store ingested data in a temporary table. The effect of setting temporary is to place the table in a backend-defined namespace, and to drop the table at the end of the session. The namespacing may make use of a backend-specific schema and/or catalog. The server should return an error if an explicit choice of schema or catalog is incompatible with the server's namespacing decision.
public bool Temporary { get; set; }
Property Value
TransactionId
Perform the ingestion as part of this transaction. If specified, results should not be committed in the event of an error/cancellation.
public ByteString TransactionId { 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.
ClearCatalog()
Clears the value of the "catalog" field
public void ClearCatalog()
ClearSchema()
Clears the value of the "schema" field
public void ClearSchema()
ClearTransactionId()
Clears the value of the "transaction_id" field
public void ClearTransactionId()
Clone()
Creates a deep clone of this object.
public CommandStatementIngest Clone()
Returns
- CommandStatementIngest
A deep clone of this object.
Equals(CommandStatementIngest)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(CommandStatementIngest other)
Parameters
other
CommandStatementIngestAn 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(CommandStatementIngest)
Merges the given message into this one.
public void MergeFrom(CommandStatementIngest other)
Parameters
other
CommandStatementIngest
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.