Package org.apache.arrow.flight.sql.impl
Class FlightSql.CommandGetSqlInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
org.apache.arrow.flight.sql.impl.FlightSql.CommandGetSqlInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,FlightSql.CommandGetSqlInfoOrBuilder
- Enclosing class:
- FlightSql.CommandGetSqlInfo
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
-
Method Summary
Modifier and TypeMethodDescriptionaddAllInfo
(Iterable<? extends Integer> values) Values are modelled after ODBC's SQLGetInfo() function.addInfo
(int value) Values are modelled after ODBC's SQLGetInfo() function.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Values are modelled after ODBC's SQLGetInfo() function.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
getInfo
(int index) Values are modelled after ODBC's SQLGetInfo() function.int
Values are modelled after ODBC's SQLGetInfo() function.Values are modelled after ODBC's SQLGetInfo() function.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setInfo
(int index, int value) Values are modelled after ODBC's SQLGetInfo() function.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
-
setField
public FlightSql.CommandGetSqlInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
-
clearField
public FlightSql.CommandGetSqlInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
-
clearOneof
public FlightSql.CommandGetSqlInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
-
setRepeatedField
public FlightSql.CommandGetSqlInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
-
addRepeatedField
public FlightSql.CommandGetSqlInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FlightSql.CommandGetSqlInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
-
mergeFrom
public FlightSql.CommandGetSqlInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FlightSql.CommandGetSqlInfo.Builder>
- Throws:
IOException
-
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;
- Specified by:
getInfoList
in interfaceFlightSql.CommandGetSqlInfoOrBuilder
- Returns:
- A list containing the info.
-
getInfoCount
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;
- Specified by:
getInfoCount
in interfaceFlightSql.CommandGetSqlInfoOrBuilder
- Returns:
- The count of info.
-
getInfo
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;
- Specified by:
getInfo
in interfaceFlightSql.CommandGetSqlInfoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The info at the given index.
-
setInfo
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;
- Parameters:
index
- The index to set the value at.value
- The info to set.- Returns:
- This builder for chaining.
-
addInfo
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;
- Parameters:
value
- The info to add.- Returns:
- This builder for chaining.
-
addAllInfo
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;
- Parameters:
values
- The info to add.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final FlightSql.CommandGetSqlInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
-
mergeUnknownFields
public final FlightSql.CommandGetSqlInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FlightSql.CommandGetSqlInfo.Builder>
-