public static final class FlightSql.CommandStatementQuery.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandStatementQuery.Builder> implements FlightSql.CommandStatementQueryOrBuilder
Represents a SQL query. 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. - GetFlightInfo: execute the query.Protobuf type
arrow.flight.protocol.sql.CommandStatementQuery
Modifier and Type | Method and Description |
---|---|
FlightSql.CommandStatementQuery |
build() |
FlightSql.CommandStatementQuery |
buildPartial() |
FlightSql.CommandStatementQuery.Builder |
clear() |
FlightSql.CommandStatementQuery.Builder |
clearQuery()
The SQL syntax.
|
FlightSql.CommandStatementQuery.Builder |
clearTransactionId()
Include the query as part of this transaction (if unset, the query is auto-committed).
|
FlightSql.CommandStatementQuery |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getQuery()
The SQL syntax.
|
com.google.protobuf.ByteString |
getQueryBytes()
The SQL syntax.
|
com.google.protobuf.ByteString |
getTransactionId()
Include the query as part of this transaction (if unset, the query is auto-committed).
|
boolean |
hasTransactionId()
Include the query as part of this transaction (if unset, the query is auto-committed).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
FlightSql.CommandStatementQuery.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FlightSql.CommandStatementQuery.Builder |
mergeFrom(FlightSql.CommandStatementQuery other) |
FlightSql.CommandStatementQuery.Builder |
mergeFrom(com.google.protobuf.Message other) |
FlightSql.CommandStatementQuery.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
FlightSql.CommandStatementQuery.Builder |
setQuery(String value)
The SQL syntax.
|
FlightSql.CommandStatementQuery.Builder |
setQueryBytes(com.google.protobuf.ByteString value)
The SQL syntax.
|
FlightSql.CommandStatementQuery.Builder |
setTransactionId(com.google.protobuf.ByteString value)
Include the query as part of this transaction (if unset, the query is auto-committed).
|
FlightSql.CommandStatementQuery.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandStatementQuery.Builder>
public FlightSql.CommandStatementQuery.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandStatementQuery.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandStatementQuery.Builder>
public FlightSql.CommandStatementQuery getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public FlightSql.CommandStatementQuery build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public FlightSql.CommandStatementQuery buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public FlightSql.CommandStatementQuery.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<FlightSql.CommandStatementQuery.Builder>
public FlightSql.CommandStatementQuery.Builder mergeFrom(FlightSql.CommandStatementQuery other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandStatementQuery.Builder>
public FlightSql.CommandStatementQuery.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<FlightSql.CommandStatementQuery.Builder>
IOException
public String getQuery()
The SQL syntax.
string query = 1;
getQuery
in interface FlightSql.CommandStatementQueryOrBuilder
public com.google.protobuf.ByteString getQueryBytes()
The SQL syntax.
string query = 1;
getQueryBytes
in interface FlightSql.CommandStatementQueryOrBuilder
public FlightSql.CommandStatementQuery.Builder setQuery(String value)
The SQL syntax.
string query = 1;
value
- The query to set.public FlightSql.CommandStatementQuery.Builder clearQuery()
The SQL syntax.
string query = 1;
public FlightSql.CommandStatementQuery.Builder setQueryBytes(com.google.protobuf.ByteString value)
The SQL syntax.
string query = 1;
value
- The bytes for query to set.public boolean hasTransactionId()
Include the query as part of this transaction (if unset, the query is auto-committed).
optional bytes transaction_id = 2;
hasTransactionId
in interface FlightSql.CommandStatementQueryOrBuilder
public com.google.protobuf.ByteString getTransactionId()
Include the query as part of this transaction (if unset, the query is auto-committed).
optional bytes transaction_id = 2;
getTransactionId
in interface FlightSql.CommandStatementQueryOrBuilder
public FlightSql.CommandStatementQuery.Builder setTransactionId(com.google.protobuf.ByteString value)
Include the query as part of this transaction (if unset, the query is auto-committed).
optional bytes transaction_id = 2;
value
- The transactionId to set.public FlightSql.CommandStatementQuery.Builder clearTransactionId()
Include the query as part of this transaction (if unset, the query is auto-committed).
optional bytes transaction_id = 2;
public final FlightSql.CommandStatementQuery.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandStatementQuery.Builder>
public final FlightSql.CommandStatementQuery.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandStatementQuery.Builder>
Copyright © 2023 The Apache Software Foundation. All rights reserved.