public static final class FlightSql.CommandGetSqlInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder> implements FlightSql.CommandGetSqlInfoOrBuilder
Represents a metadata request. Used in the command member of FlightDescriptor for the following RPC calls: - GetSchema: return the Arrow schema of the query. - GetFlightInfo: execute the metadata request. The returned Arrow schema will be: < info_name: uint32 not null, value: dense_union< string_value: utf8, bool_value: bool, bigint_value: int64, int32_bitmask: int32, string_list: list<string_data: utf8> int32_to_int32_list_map: map<key: int32, value: list<$data$: int32>> > where there is one row per requested piece of metadata information.Protobuf type
arrow.flight.protocol.sql.CommandGetSqlInfo
Modifier and Type | Method and Description |
---|---|
FlightSql.CommandGetSqlInfo.Builder |
addAllInfo(Iterable<? extends Integer> values)
Values are modelled after ODBC's SQLGetInfo() function.
|
FlightSql.CommandGetSqlInfo.Builder |
addInfo(int value)
Values are modelled after ODBC's SQLGetInfo() function.
|
FlightSql.CommandGetSqlInfo |
build() |
FlightSql.CommandGetSqlInfo |
buildPartial() |
FlightSql.CommandGetSqlInfo.Builder |
clear() |
FlightSql.CommandGetSqlInfo.Builder |
clearInfo()
Values are modelled after ODBC's SQLGetInfo() function.
|
FlightSql.CommandGetSqlInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getInfo(int index)
Values are modelled after ODBC's SQLGetInfo() function.
|
int |
getInfoCount()
Values are modelled after ODBC's SQLGetInfo() function.
|
List<Integer> |
getInfoList()
Values are modelled after ODBC's SQLGetInfo() function.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
FlightSql.CommandGetSqlInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
FlightSql.CommandGetSqlInfo.Builder |
mergeFrom(FlightSql.CommandGetSqlInfo other) |
FlightSql.CommandGetSqlInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
FlightSql.CommandGetSqlInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
FlightSql.CommandGetSqlInfo.Builder |
setInfo(int index,
int value)
Values are modelled after ODBC's SQLGetInfo() function.
|
FlightSql.CommandGetSqlInfo.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.CommandGetSqlInfo.Builder>
public FlightSql.CommandGetSqlInfo.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.CommandGetSqlInfo.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.CommandGetSqlInfo.Builder>
public FlightSql.CommandGetSqlInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public FlightSql.CommandGetSqlInfo build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public FlightSql.CommandGetSqlInfo buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public FlightSql.CommandGetSqlInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<FlightSql.CommandGetSqlInfo.Builder>
public FlightSql.CommandGetSqlInfo.Builder mergeFrom(FlightSql.CommandGetSqlInfo other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
public FlightSql.CommandGetSqlInfo.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.CommandGetSqlInfo.Builder>
IOException
public List<Integer> getInfoList()
Values are modelled after ODBC's SQLGetInfo() function. This information is intended to provide Flight SQL clients with basic, SQL syntax and SQL functions related information. More information types can be added in future releases. E.g. more SQL syntax support types, scalar functions support, type conversion support etc. Note that the set of metadata may expand. Initially, Flight SQL will support the following information types: - Server Information - Range [0-500) - Syntax Information - Range [500-1000) Range [0-10,000) is reserved for defaults (see SqlInfo enum for default options). Custom options should start at 10,000. If omitted, then all metadata will be retrieved. Flight SQL Servers may choose to include additional metadata above and beyond the specified set, however they must at least return the specified set. IDs ranging from 0 to 10,000 (exclusive) are reserved for future use. If additional metadata is included, the metadata IDs should start from 10,000.
repeated uint32 info = 1;
getInfoList
in interface FlightSql.CommandGetSqlInfoOrBuilder
public int getInfoCount()
Values are modelled after ODBC's SQLGetInfo() function. This information is intended to provide Flight SQL clients with basic, SQL syntax and SQL functions related information. More information types can be added in future releases. E.g. more SQL syntax support types, scalar functions support, type conversion support etc. Note that the set of metadata may expand. Initially, Flight SQL will support the following information types: - Server Information - Range [0-500) - Syntax Information - Range [500-1000) Range [0-10,000) is reserved for defaults (see SqlInfo enum for default options). Custom options should start at 10,000. If omitted, then all metadata will be retrieved. Flight SQL Servers may choose to include additional metadata above and beyond the specified set, however they must at least return the specified set. IDs ranging from 0 to 10,000 (exclusive) are reserved for future use. If additional metadata is included, the metadata IDs should start from 10,000.
repeated uint32 info = 1;
getInfoCount
in interface FlightSql.CommandGetSqlInfoOrBuilder
public int getInfo(int index)
Values are modelled after ODBC's SQLGetInfo() function. This information is intended to provide Flight SQL clients with basic, SQL syntax and SQL functions related information. More information types can be added in future releases. E.g. more SQL syntax support types, scalar functions support, type conversion support etc. Note that the set of metadata may expand. Initially, Flight SQL will support the following information types: - Server Information - Range [0-500) - Syntax Information - Range [500-1000) Range [0-10,000) is reserved for defaults (see SqlInfo enum for default options). Custom options should start at 10,000. If omitted, then all metadata will be retrieved. Flight SQL Servers may choose to include additional metadata above and beyond the specified set, however they must at least return the specified set. IDs ranging from 0 to 10,000 (exclusive) are reserved for future use. If additional metadata is included, the metadata IDs should start from 10,000.
repeated uint32 info = 1;
getInfo
in interface FlightSql.CommandGetSqlInfoOrBuilder
index
- The index of the element to return.public FlightSql.CommandGetSqlInfo.Builder setInfo(int index, int value)
Values are modelled after ODBC's SQLGetInfo() function. This information is intended to provide Flight SQL clients with basic, SQL syntax and SQL functions related information. More information types can be added in future releases. E.g. more SQL syntax support types, scalar functions support, type conversion support etc. Note that the set of metadata may expand. Initially, Flight SQL will support the following information types: - Server Information - Range [0-500) - Syntax Information - Range [500-1000) Range [0-10,000) is reserved for defaults (see SqlInfo enum for default options). Custom options should start at 10,000. If omitted, then all metadata will be retrieved. Flight SQL Servers may choose to include additional metadata above and beyond the specified set, however they must at least return the specified set. IDs ranging from 0 to 10,000 (exclusive) are reserved for future use. If additional metadata is included, the metadata IDs should start from 10,000.
repeated uint32 info = 1;
index
- The index to set the value at.value
- The info to set.public FlightSql.CommandGetSqlInfo.Builder addInfo(int value)
Values are modelled after ODBC's SQLGetInfo() function. This information is intended to provide Flight SQL clients with basic, SQL syntax and SQL functions related information. More information types can be added in future releases. E.g. more SQL syntax support types, scalar functions support, type conversion support etc. Note that the set of metadata may expand. Initially, Flight SQL will support the following information types: - Server Information - Range [0-500) - Syntax Information - Range [500-1000) Range [0-10,000) is reserved for defaults (see SqlInfo enum for default options). Custom options should start at 10,000. If omitted, then all metadata will be retrieved. Flight SQL Servers may choose to include additional metadata above and beyond the specified set, however they must at least return the specified set. IDs ranging from 0 to 10,000 (exclusive) are reserved for future use. If additional metadata is included, the metadata IDs should start from 10,000.
repeated uint32 info = 1;
value
- The info to add.public FlightSql.CommandGetSqlInfo.Builder addAllInfo(Iterable<? extends Integer> values)
Values are modelled after ODBC's SQLGetInfo() function. This information is intended to provide Flight SQL clients with basic, SQL syntax and SQL functions related information. More information types can be added in future releases. E.g. more SQL syntax support types, scalar functions support, type conversion support etc. Note that the set of metadata may expand. Initially, Flight SQL will support the following information types: - Server Information - Range [0-500) - Syntax Information - Range [500-1000) Range [0-10,000) is reserved for defaults (see SqlInfo enum for default options). Custom options should start at 10,000. If omitted, then all metadata will be retrieved. Flight SQL Servers may choose to include additional metadata above and beyond the specified set, however they must at least return the specified set. IDs ranging from 0 to 10,000 (exclusive) are reserved for future use. If additional metadata is included, the metadata IDs should start from 10,000.
repeated uint32 info = 1;
values
- The info to add.public FlightSql.CommandGetSqlInfo.Builder clearInfo()
Values are modelled after ODBC's SQLGetInfo() function. This information is intended to provide Flight SQL clients with basic, SQL syntax and SQL functions related information. More information types can be added in future releases. E.g. more SQL syntax support types, scalar functions support, type conversion support etc. Note that the set of metadata may expand. Initially, Flight SQL will support the following information types: - Server Information - Range [0-500) - Syntax Information - Range [500-1000) Range [0-10,000) is reserved for defaults (see SqlInfo enum for default options). Custom options should start at 10,000. If omitted, then all metadata will be retrieved. Flight SQL Servers may choose to include additional metadata above and beyond the specified set, however they must at least return the specified set. IDs ranging from 0 to 10,000 (exclusive) are reserved for future use. If additional metadata is included, the metadata IDs should start from 10,000.
repeated uint32 info = 1;
public final FlightSql.CommandGetSqlInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
public final FlightSql.CommandGetSqlInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
Copyright © 2023 The Apache Software Foundation. All rights reserved.