Package org.apache.arrow.flight.sql
Class SqlInfoBuilder
java.lang.Object
org.apache.arrow.flight.sql.SqlInfoBuilder
Auxiliary class meant to facilitate the implementation of
FlightSqlProducer.getStreamSqlInfo(org.apache.arrow.flight.sql.impl.FlightSql.CommandGetSqlInfo, org.apache.arrow.flight.FlightProducer.CallContext, org.apache.arrow.flight.FlightProducer.ServerStreamListener)
.
Usage requires the user to add the required SqlInfo values using the with*
methods
like withFlightSqlServerName(String)
, and request it back through the
send(List, ServerStreamListener)
method.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic NullableVarCharHolder
getHolderForUtf8
(String string, ArrowBuf buf) void
send
(List<Integer> infos, FlightProducer.ServerStreamListener listener) Send the requested information to given ServerStreamListener.Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_ARROW_VERSION
in the builder.withFlightSqlServerCancel
(boolean value) Set a value for query cancellation support.withFlightSqlServerName
(String value) Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_NAME
in the builder.withFlightSqlServerReadOnly
(boolean value) Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_READ_ONLY
in the builder.withFlightSqlServerSql
(boolean value) Set a value for SQL support.withFlightSqlServerStatementTimeout
(int value) Set a value for statement timeouts.withFlightSqlServerSubstrait
(boolean value) Set a value for Substrait support.Set a value for Substrait maximum version support.Set a value for Substrait minimum version support.Set a value for transaction support.withFlightSqlServerTransactionTimeout
(int value) Set a value for transaction timeouts.withFlightSqlServerVersion
(String value) Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_VERSION
in the builder.withSqlAllTablesAreSelectable
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_ALL_TABLES_ARE_SELECTABLE
in the builder.Sets a value forFlightSql.SqlInfo.SQL_ANSI92_SUPPORTED_LEVEL
in the builder.withSqlBatchUpdatesSupported
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_BATCH_UPDATES_SUPPORTED
in the builder.withSqlCatalogAtStart
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_CATALOG_AT_START
in the builder.Sets a value forFlightSql.SqlInfo.SQL_CATALOGS_SUPPORTED_ACTIONS
in the builder.withSqlCatalogTerm
(String value) Sets a value forFlightSql.SqlInfo.SQL_CATALOG_TERM
in the builder.withSqlCorrelatedSubqueriesSupported
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_CORRELATED_SUBQUERIES_SUPPORTED
in the builder.withSqlDataDefinitionCausesTransactionCommit
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_DATA_DEFINITION_CAUSES_TRANSACTION_COMMIT
in the builder.withSqlDataDefinitionsInTransactionsIgnored
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_DATA_DEFINITIONS_IN_TRANSACTIONS_IGNORED
in the builder.withSqlDatetimeFunctions
(String[] value) Sets a value forFlightSql.SqlInfo.SQL_DATETIME_FUNCTIONS
in the builder.withSqlDbSchemaNameLength
(long value) Sets a value forFlightSql.SqlInfo.SQL_DB_SCHEMA_NAME_LENGTH
in the builder.withSqlDdlCatalog
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_DDL_CATALOG
in the builder.withSqlDdlSchema
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_DDL_SCHEMA
in the builder.withSqlDdlTable
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_DDL_TABLE
in the builder.withSqlDefaultTransactionIsolation
(long value) Sets a value forFlightSql.SqlInfo.SQL_DEFAULT_TRANSACTION_ISOLATION
in the builder.withSqlExtraNameCharacters
(String value) Sets a value forFlightSql.SqlInfo.SQL_EXTRA_NAME_CHARACTERS
in the builder.Sets a value forFlightSql.SqlInfo.SQL_IDENTIFIER_CASE
in the builder.withSqlIdentifierQuoteChar
(String value) Sets a value forFlightSql.SqlInfo.SQL_IDENTIFIER_QUOTE_CHAR
in the builder.withSqlKeywords
(String[] value) Sets a value forFlightSql.SqlInfo.SQL_KEYWORDS
in the builder.withSqlLocatorsUpdateCopy
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_LOCATORS_UPDATE_COPY
in the builder.withSqlMaxBinaryLiteralLength
(long value) Sets a value SqlInf @link SqlInfo#SQL_MAX_BINARY_LITERAL_LENGTH} in the builder.withSqlMaxCatalogNameLength
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_CATALOG_NAME_LENGTH
in the builder.withSqlMaxCharLiteralLength
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_CHAR_LITERAL_LENGTH
in the builder.withSqlMaxColumnNameLength
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMN_NAME_LENGTH
in the builder.withSqlMaxColumnsInGroupBy
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_GROUP_BY
in the builder.withSqlMaxColumnsInIndex
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_INDEX
in the builder.withSqlMaxColumnsInOrderBy
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_ORDER_BY
in the builder.withSqlMaxColumnsInSelect
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_SELECT
in the builder.withSqlMaxColumnsInTable
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_TABLE
in the builder.withSqlMaxConnections
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_CONNECTIONS
in the builder.withSqlMaxCursorNameLength
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_CURSOR_NAME_LENGTH
in the builder.withSqlMaxIndexLength
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_INDEX_LENGTH
in the builder.withSqlMaxProcedureNameLength
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_PROCEDURE_NAME_LENGTH
in the builder.withSqlMaxRowSize
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_ROW_SIZE
in the builder.withSqlMaxRowSizeIncludesBlobs
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_MAX_ROW_SIZE_INCLUDES_BLOBS
in the builder.withSqlMaxStatementLength
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_STATEMENT_LENGTH
in the builder.withSqlMaxStatements
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_STATEMENTS
in the builder.withSqlMaxTableNameLength
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_TABLE_NAME_LENGTH
in the builder.withSqlMaxTablesInSelect
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_TABLES_IN_SELECT
in the builder.withSqlMaxUsernameLength
(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_USERNAME_LENGTH
in the builder.withSqlNamedParametersSupported
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_NAMED_PARAMETERS_SUPPORTED
in the builder.Sets a value forFlightSql.SqlInfo.SQL_NULL_ORDERING
in the builder.withSqlNullPlusNullIsNull
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_NULL_PLUS_NULL_IS_NULL
in the builder.withSqlNumericFunctions
(String[] value) Sets a value forFlightSql.SqlInfo.SQL_NUMERIC_FUNCTIONS
in the builder.Sets a value forFlightSql.SqlInfo.SQL_OUTER_JOINS_SUPPORT_LEVEL
in the builder.withSqlProcedureTerm
(String value) Sets a value forFlightSql.SqlInfo.SQL_PROCEDURE_TERM
in the builder.Sets a value forFlightSql.SqlInfo.SQL_QUOTED_IDENTIFIER_CASE
in the builder.withSqlSavepointsSupported
(boolean value) Sets a value for { @link SqlInfo#SQL_SAVEPOINTS_SUPPORTED} in the builder.Sets a value forFlightSql.SqlInfo.SQL_SCHEMAS_SUPPORTED_ACTIONS
in the builder.withSqlSchemaTerm
(String value) Sets a value forFlightSql.SqlInfo.SQL_SCHEMA_TERM
in the builder.withSqlSearchStringEscape
(String value) Sets a value forFlightSql.SqlInfo.SQL_SEARCH_STRING_ESCAPE
in the builder.withSqlSelectForUpdateSupported
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SELECT_FOR_UPDATE_SUPPORTED
in the builder.withSqlStoredFunctionsUsingCallSyntaxSupported
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_STORED_FUNCTIONS_USING_CALL_SYNTAX_SUPPORTED
in the builder.withSqlStoredProceduresSupported
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_STORED_PROCEDURES_SUPPORTED
in the builder.withSqlStringFunctions
(String[] value) Sets a value forFlightSql.SqlInfo.SQL_STRING_FUNCTIONS
in the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_SUBQUERIES
in the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_GRAMMAR
in the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_GROUP_BY
in the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_POSITIONED_COMMANDS
in the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_RESULT_SET_TYPES
in the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_TRANSACTIONS_ISOLATION_LEVELS
in the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_UNIONS
in the builder.withSqlSupportsColumnAliasing
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_COLUMN_ALIASING
in the builder.withSqlSupportsConvert
(Map<Integer, List<Integer>> value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_CONVERT
in the builder.withSqlSupportsDifferentTableCorrelationNames
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_DIFFERENT_TABLE_CORRELATION_NAMES
in the builder.withSqlSupportsExpressionsInOrderBy
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_EXPRESSIONS_IN_ORDER_BY
in the builder.withSqlSupportsIntegrityEnhancementFacility
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_INTEGRITY_ENHANCEMENT_FACILITY
in the builder.withSqlSupportsLikeEscapeClause
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_LIKE_ESCAPE_CLAUSE
in the builder.withSqlSupportsNonNullableColumns
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_NON_NULLABLE_COLUMNS
in the builder.withSqlSupportsOrderByUnrelated
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_ORDER_BY_UNRELATED
in the builder.withSqlSupportsTableCorrelationNames
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_TABLE_CORRELATION_NAMES
in the builder.withSqlSystemFunctions
(String[] value) Sets a value forFlightSql.SqlInfo.SQL_SYSTEM_FUNCTIONS
in the builder.withSqlTransactionsSupported
(boolean value) Sets a value forFlightSql.SqlInfo.SQL_TRANSACTIONS_SUPPORTED
in the builder.
-
Constructor Details
-
SqlInfoBuilder
public SqlInfoBuilder()
-
-
Method Details
-
getHolderForUtf8
- Parameters:
string
- theStandardCharsets.UTF_8
-encoded text input to store onto the holder.buf
- theArrowBuf
from which to create the new holder.- Returns:
- a new
NullableVarCharHolder
with the provided input datastring
.
-
withFlightSqlServerName
Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_NAME
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_NAME
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withFlightSqlServerVersion
Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_VERSION
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_VERSION
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withFlightSqlServerArrowVersion
Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_ARROW_VERSION
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_ARROW_VERSION
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withFlightSqlServerSql
Set a value for SQL support. -
withFlightSqlServerSubstrait
Set a value for Substrait support. -
withFlightSqlServerSubstraitMinVersion
Set a value for Substrait minimum version support. -
withFlightSqlServerSubstraitMaxVersion
Set a value for Substrait maximum version support. -
withFlightSqlServerTransaction
Set a value for transaction support. -
withFlightSqlServerCancel
Set a value for query cancellation support. -
withFlightSqlServerStatementTimeout
Set a value for statement timeouts. -
withFlightSqlServerTransactionTimeout
Set a value for transaction timeouts. -
withSqlIdentifierQuoteChar
Sets a value forFlightSql.SqlInfo.SQL_IDENTIFIER_QUOTE_CHAR
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_IDENTIFIER_QUOTE_CHAR
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSearchStringEscape
Sets a value forFlightSql.SqlInfo.SQL_SEARCH_STRING_ESCAPE
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_SEARCH_STRING_ESCAPE
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlExtraNameCharacters
Sets a value forFlightSql.SqlInfo.SQL_EXTRA_NAME_CHARACTERS
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_EXTRA_NAME_CHARACTERS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSchemaTerm
Sets a value forFlightSql.SqlInfo.SQL_SCHEMA_TERM
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_SCHEMA_TERM
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlCatalogTerm
Sets a value forFlightSql.SqlInfo.SQL_CATALOG_TERM
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_CATALOG_TERM
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlProcedureTerm
Sets a value forFlightSql.SqlInfo.SQL_PROCEDURE_TERM
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_PROCEDURE_TERM
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDdlCatalog
Sets a value forFlightSql.SqlInfo.SQL_DDL_CATALOG
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_DDL_CATALOG
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDdlSchema
Sets a value forFlightSql.SqlInfo.SQL_DDL_SCHEMA
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_DDL_SCHEMA
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDdlTable
Sets a value forFlightSql.SqlInfo.SQL_DDL_TABLE
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_DDL_TABLE
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withFlightSqlServerReadOnly
Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_READ_ONLY
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_READ_ONLY
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsColumnAliasing
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_COLUMN_ALIASING
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_SUPPORTS_COLUMN_ALIASING
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlNullPlusNullIsNull
Sets a value forFlightSql.SqlInfo.SQL_NULL_PLUS_NULL_IS_NULL
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_NULL_PLUS_NULL_IS_NULL
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsTableCorrelationNames
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_TABLE_CORRELATION_NAMES
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_SUPPORTS_TABLE_CORRELATION_NAMES
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsDifferentTableCorrelationNames
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_DIFFERENT_TABLE_CORRELATION_NAMES
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_SUPPORTS_DIFFERENT_TABLE_CORRELATION_NAMES
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsExpressionsInOrderBy
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_EXPRESSIONS_IN_ORDER_BY
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_SUPPORTS_EXPRESSIONS_IN_ORDER_BY
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsLikeEscapeClause
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_LIKE_ESCAPE_CLAUSE
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_SUPPORTS_LIKE_ESCAPE_CLAUSE
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsNonNullableColumns
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_NON_NULLABLE_COLUMNS
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_SUPPORTS_NON_NULLABLE_COLUMNS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsIntegrityEnhancementFacility
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_INTEGRITY_ENHANCEMENT_FACILITY
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_SUPPORTS_INTEGRITY_ENHANCEMENT_FACILITY
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlCatalogAtStart
Sets a value forFlightSql.SqlInfo.SQL_CATALOG_AT_START
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_CATALOG_AT_START
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSelectForUpdateSupported
Sets a value forFlightSql.SqlInfo.SQL_SELECT_FOR_UPDATE_SUPPORTED
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_SELECT_FOR_UPDATE_SUPPORTED
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlStoredProceduresSupported
Sets a value forFlightSql.SqlInfo.SQL_STORED_PROCEDURES_SUPPORTED
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_STORED_PROCEDURES_SUPPORTED
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxRowSizeIncludesBlobs
Sets a value forFlightSql.SqlInfo.SQL_MAX_ROW_SIZE_INCLUDES_BLOBS
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_ROW_SIZE_INCLUDES_BLOBS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlTransactionsSupported
Sets a value forFlightSql.SqlInfo.SQL_TRANSACTIONS_SUPPORTED
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_TRANSACTIONS_SUPPORTED
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDataDefinitionCausesTransactionCommit
Sets a value forFlightSql.SqlInfo.SQL_DATA_DEFINITION_CAUSES_TRANSACTION_COMMIT
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_DATA_DEFINITION_CAUSES_TRANSACTION_COMMIT
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDataDefinitionsInTransactionsIgnored
Sets a value forFlightSql.SqlInfo.SQL_DATA_DEFINITIONS_IN_TRANSACTIONS_IGNORED
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_DATA_DEFINITIONS_IN_TRANSACTIONS_IGNORED
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlBatchUpdatesSupported
Sets a value forFlightSql.SqlInfo.SQL_BATCH_UPDATES_SUPPORTED
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_BATCH_UPDATES_SUPPORTED
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSavepointsSupported
Sets a value for { @link SqlInfo#SQL_SAVEPOINTS_SUPPORTED} in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_SAVEPOINTS_SUPPORTED
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlNamedParametersSupported
Sets a value forFlightSql.SqlInfo.SQL_NAMED_PARAMETERS_SUPPORTED
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_NAMED_PARAMETERS_SUPPORTED
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlLocatorsUpdateCopy
Sets a value forFlightSql.SqlInfo.SQL_LOCATORS_UPDATE_COPY
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_LOCATORS_UPDATE_COPY
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlStoredFunctionsUsingCallSyntaxSupported
Sets a value forFlightSql.SqlInfo.SQL_STORED_FUNCTIONS_USING_CALL_SYNTAX_SUPPORTED
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_STORED_FUNCTIONS_USING_CALL_SYNTAX_SUPPORTED
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlIdentifierCase
Sets a value forFlightSql.SqlInfo.SQL_IDENTIFIER_CASE
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_IDENTIFIER_CASE
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlQuotedIdentifierCase
Sets a value forFlightSql.SqlInfo.SQL_QUOTED_IDENTIFIER_CASE
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_QUOTED_IDENTIFIER_CASE
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlAllTablesAreSelectable
Sets a value forFlightSql.SqlInfo.SQL_ALL_TABLES_ARE_SELECTABLE
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_ALL_TABLES_ARE_SELECTABLE
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlNullOrdering
Sets a value forFlightSql.SqlInfo.SQL_NULL_ORDERING
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_NULL_ORDERING
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxBinaryLiteralLength
Sets a value SqlInf @link SqlInfo#SQL_MAX_BINARY_LITERAL_LENGTH} in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_BINARY_LITERAL_LENGTH
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxCharLiteralLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_CHAR_LITERAL_LENGTH
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_CHAR_LITERAL_LENGTH
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxColumnNameLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMN_NAME_LENGTH
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_COLUMN_NAME_LENGTH
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxColumnsInGroupBy
Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_GROUP_BY
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_GROUP_BY
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxColumnsInIndex
Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_INDEX
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_INDEX
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxColumnsInOrderBy
Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_ORDER_BY
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_ORDER_BY
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxColumnsInSelect
Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_SELECT
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_SELECT
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxColumnsInTable
Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_TABLE
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_TABLE
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxConnections
Sets a value forFlightSql.SqlInfo.SQL_MAX_CONNECTIONS
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_CONNECTIONS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxCursorNameLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_CURSOR_NAME_LENGTH
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_CURSOR_NAME_LENGTH
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxIndexLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_INDEX_LENGTH
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_INDEX_LENGTH
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDbSchemaNameLength
Sets a value forFlightSql.SqlInfo.SQL_DB_SCHEMA_NAME_LENGTH
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_DB_SCHEMA_NAME_LENGTH
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxProcedureNameLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_PROCEDURE_NAME_LENGTH
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_PROCEDURE_NAME_LENGTH
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxCatalogNameLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_CATALOG_NAME_LENGTH
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_CATALOG_NAME_LENGTH
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxRowSize
Sets a value forFlightSql.SqlInfo.SQL_MAX_ROW_SIZE
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_ROW_SIZE
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxStatementLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_STATEMENT_LENGTH
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_STATEMENT_LENGTH
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxStatements
Sets a value forFlightSql.SqlInfo.SQL_MAX_STATEMENTS
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_STATEMENTS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxTableNameLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_TABLE_NAME_LENGTH
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_TABLE_NAME_LENGTH
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxTablesInSelect
Sets a value forFlightSql.SqlInfo.SQL_MAX_TABLES_IN_SELECT
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_TABLES_IN_SELECT
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxUsernameLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_USERNAME_LENGTH
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_MAX_USERNAME_LENGTH
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDefaultTransactionIsolation
Sets a value forFlightSql.SqlInfo.SQL_DEFAULT_TRANSACTION_ISOLATION
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_DEFAULT_TRANSACTION_ISOLATION
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportedGroupBy
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_GROUP_BY
in the builder.- Parameters:
values
- the value forFlightSql.SqlInfo.SQL_SUPPORTED_GROUP_BY
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportedGrammar
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_GRAMMAR
in the builder.- Parameters:
values
- the value forFlightSql.SqlInfo.SQL_SUPPORTED_GRAMMAR
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlAnsi92SupportedLevel
public SqlInfoBuilder withSqlAnsi92SupportedLevel(FlightSql.SupportedAnsi92SqlGrammarLevel... values) Sets a value forFlightSql.SqlInfo.SQL_ANSI92_SUPPORTED_LEVEL
in the builder.- Parameters:
values
- the value forFlightSql.SqlInfo.SQL_ANSI92_SUPPORTED_LEVEL
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSchemasSupportedActions
public SqlInfoBuilder withSqlSchemasSupportedActions(FlightSql.SqlSupportedElementActions... values) Sets a value forFlightSql.SqlInfo.SQL_SCHEMAS_SUPPORTED_ACTIONS
in the builder.- Parameters:
values
- the value forFlightSql.SqlInfo.SQL_SCHEMAS_SUPPORTED_ACTIONS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlCatalogsSupportedActions
public SqlInfoBuilder withSqlCatalogsSupportedActions(FlightSql.SqlSupportedElementActions... values) Sets a value forFlightSql.SqlInfo.SQL_CATALOGS_SUPPORTED_ACTIONS
in the builder.- Parameters:
values
- the value forFlightSql.SqlInfo.SQL_CATALOGS_SUPPORTED_ACTIONS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportedPositionedCommands
public SqlInfoBuilder withSqlSupportedPositionedCommands(FlightSql.SqlSupportedPositionedCommands... values) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_POSITIONED_COMMANDS
in the builder.- Parameters:
values
- the value forFlightSql.SqlInfo.SQL_SUPPORTED_POSITIONED_COMMANDS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSubQueriesSupported
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_SUBQUERIES
in the builder.- Parameters:
values
- the value forFlightSql.SqlInfo.SQL_SUPPORTED_SUBQUERIES
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportedUnions
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_UNIONS
in the builder.- Parameters:
values
- the values forFlightSql.SqlInfo.SQL_SUPPORTED_UNIONS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlOuterJoinSupportLevel
Sets a value forFlightSql.SqlInfo.SQL_OUTER_JOINS_SUPPORT_LEVEL
in the builder.- Parameters:
value
- the value forFlightSql.SqlInfo.SQL_OUTER_JOINS_SUPPORT_LEVEL
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportedTransactionsIsolationLevels
public SqlInfoBuilder withSqlSupportedTransactionsIsolationLevels(FlightSql.SqlTransactionIsolationLevel... values) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_TRANSACTIONS_ISOLATION_LEVELS
in the builder.- Parameters:
values
- the values forFlightSql.SqlInfo.SQL_SUPPORTED_TRANSACTIONS_ISOLATION_LEVELS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportedResultSetTypes
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_RESULT_SET_TYPES
in the builder.- Parameters:
values
- the values forFlightSql.SqlInfo.SQL_SUPPORTED_RESULT_SET_TYPES
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlKeywords
Sets a value forFlightSql.SqlInfo.SQL_KEYWORDS
in the builder.- Parameters:
value
- the values forFlightSql.SqlInfo.SQL_KEYWORDS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlNumericFunctions
Sets a value forFlightSql.SqlInfo.SQL_NUMERIC_FUNCTIONS
in the builder.- Parameters:
value
- the values forFlightSql.SqlInfo.SQL_NUMERIC_FUNCTIONS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlStringFunctions
Sets a value forFlightSql.SqlInfo.SQL_STRING_FUNCTIONS
in the builder.- Parameters:
value
- the values forFlightSql.SqlInfo.SQL_STRING_FUNCTIONS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSystemFunctions
Sets a value forFlightSql.SqlInfo.SQL_SYSTEM_FUNCTIONS
in the builder.- Parameters:
value
- the values forFlightSql.SqlInfo.SQL_SYSTEM_FUNCTIONS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDatetimeFunctions
Sets a value forFlightSql.SqlInfo.SQL_DATETIME_FUNCTIONS
in the builder.- Parameters:
value
- the values forFlightSql.SqlInfo.SQL_DATETIME_FUNCTIONS
to be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsConvert
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_CONVERT
in the builder.- Parameters:
value
- the values forFlightSql.SqlInfo.SQL_SUPPORTS_CONVERT
to be set.- Returns:
- the SqlInfoBuilder itself.
-
send
Send the requested information to given ServerStreamListener.- Parameters:
infos
- List of SqlInfo to be sent.listener
- ServerStreamListener to send data to.
-