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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic 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.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandStatementQuery.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandStatementQuery.Builder>public FlightSql.CommandStatementQuery getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic FlightSql.CommandStatementQuery build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic FlightSql.CommandStatementQuery buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic FlightSql.CommandStatementQuery.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized 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.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<FlightSql.CommandStatementQuery.Builder>IOExceptionpublic String getQuery()
The SQL syntax.
string query = 1;getQuery in interface FlightSql.CommandStatementQueryOrBuilderpublic com.google.protobuf.ByteString getQueryBytes()
The SQL syntax.
string query = 1;getQueryBytes in interface FlightSql.CommandStatementQueryOrBuilderpublic 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.CommandStatementQueryOrBuilderpublic 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.CommandStatementQueryOrBuilderpublic 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.BuildersetUnknownFields 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.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandStatementQuery.Builder>Copyright © 2024 The Apache Software Foundation. All rights reserved.