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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NullableVarCharHoldergetHolderForUtf8(String string, ArrowBuf buf) voidsend(List<Integer> infos, FlightProducer.ServerStreamListener listener) Send the requested information to given ServerStreamListener.Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_ARROW_VERSIONin the builder.withFlightSqlServerBulkIngestion(boolean value) Set a value for bulk ingestion support.withFlightSqlServerBulkIngestionTransaction(boolean value) Set a value for transaction support for bulk ingestion.withFlightSqlServerCancel(boolean value) Set a value for query cancellation support.withFlightSqlServerName(String value) Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_NAMEin the builder.withFlightSqlServerReadOnly(boolean value) Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_READ_ONLYin 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_VERSIONin the builder.withSqlAllTablesAreSelectable(boolean value) Sets a value forFlightSql.SqlInfo.SQL_ALL_TABLES_ARE_SELECTABLEin the builder.Sets a value forFlightSql.SqlInfo.SQL_ANSI92_SUPPORTED_LEVELin the builder.withSqlBatchUpdatesSupported(boolean value) Sets a value forFlightSql.SqlInfo.SQL_BATCH_UPDATES_SUPPORTEDin the builder.withSqlCatalogAtStart(boolean value) Sets a value forFlightSql.SqlInfo.SQL_CATALOG_AT_STARTin the builder.Sets a value forFlightSql.SqlInfo.SQL_CATALOGS_SUPPORTED_ACTIONSin the builder.withSqlCatalogTerm(String value) Sets a value forFlightSql.SqlInfo.SQL_CATALOG_TERMin the builder.withSqlCorrelatedSubqueriesSupported(boolean value) Sets a value forFlightSql.SqlInfo.SQL_CORRELATED_SUBQUERIES_SUPPORTEDin the builder.withSqlDataDefinitionCausesTransactionCommit(boolean value) Sets a value forFlightSql.SqlInfo.SQL_DATA_DEFINITION_CAUSES_TRANSACTION_COMMITin the builder.withSqlDataDefinitionsInTransactionsIgnored(boolean value) Sets a value forFlightSql.SqlInfo.SQL_DATA_DEFINITIONS_IN_TRANSACTIONS_IGNOREDin the builder.withSqlDatetimeFunctions(String[] value) Sets a value forFlightSql.SqlInfo.SQL_DATETIME_FUNCTIONSin the builder.withSqlDbSchemaNameLength(long value) Sets a value forFlightSql.SqlInfo.SQL_DB_SCHEMA_NAME_LENGTHin the builder.withSqlDdlCatalog(boolean value) Sets a value forFlightSql.SqlInfo.SQL_DDL_CATALOGin the builder.withSqlDdlSchema(boolean value) Sets a value forFlightSql.SqlInfo.SQL_DDL_SCHEMAin the builder.withSqlDdlTable(boolean value) Sets a value forFlightSql.SqlInfo.SQL_DDL_TABLEin the builder.withSqlDefaultTransactionIsolation(long value) Sets a value forFlightSql.SqlInfo.SQL_DEFAULT_TRANSACTION_ISOLATIONin the builder.withSqlExtraNameCharacters(String value) Sets a value forFlightSql.SqlInfo.SQL_EXTRA_NAME_CHARACTERSin the builder.Sets a value forFlightSql.SqlInfo.SQL_IDENTIFIER_CASEin the builder.withSqlIdentifierQuoteChar(String value) Sets a value forFlightSql.SqlInfo.SQL_IDENTIFIER_QUOTE_CHARin the builder.withSqlKeywords(String[] value) Sets a value forFlightSql.SqlInfo.SQL_KEYWORDSin the builder.withSqlLocatorsUpdateCopy(boolean value) Sets a value forFlightSql.SqlInfo.SQL_LOCATORS_UPDATE_COPYin 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_LENGTHin the builder.withSqlMaxCharLiteralLength(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_CHAR_LITERAL_LENGTHin the builder.withSqlMaxColumnNameLength(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMN_NAME_LENGTHin the builder.withSqlMaxColumnsInGroupBy(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_GROUP_BYin the builder.withSqlMaxColumnsInIndex(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_INDEXin the builder.withSqlMaxColumnsInOrderBy(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_ORDER_BYin the builder.withSqlMaxColumnsInSelect(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_SELECTin the builder.withSqlMaxColumnsInTable(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_TABLEin the builder.withSqlMaxConnections(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_CONNECTIONSin the builder.withSqlMaxCursorNameLength(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_CURSOR_NAME_LENGTHin the builder.withSqlMaxIndexLength(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_INDEX_LENGTHin the builder.withSqlMaxProcedureNameLength(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_PROCEDURE_NAME_LENGTHin the builder.withSqlMaxRowSize(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_ROW_SIZEin the builder.withSqlMaxRowSizeIncludesBlobs(boolean value) Sets a value forFlightSql.SqlInfo.SQL_MAX_ROW_SIZE_INCLUDES_BLOBSin the builder.withSqlMaxStatementLength(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_STATEMENT_LENGTHin the builder.withSqlMaxStatements(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_STATEMENTSin the builder.withSqlMaxTableNameLength(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_TABLE_NAME_LENGTHin the builder.withSqlMaxTablesInSelect(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_TABLES_IN_SELECTin the builder.withSqlMaxUsernameLength(long value) Sets a value forFlightSql.SqlInfo.SQL_MAX_USERNAME_LENGTHin the builder.withSqlNamedParametersSupported(boolean value) Sets a value forFlightSql.SqlInfo.SQL_NAMED_PARAMETERS_SUPPORTEDin the builder.Sets a value forFlightSql.SqlInfo.SQL_NULL_ORDERINGin the builder.withSqlNullPlusNullIsNull(boolean value) Sets a value forFlightSql.SqlInfo.SQL_NULL_PLUS_NULL_IS_NULLin the builder.withSqlNumericFunctions(String[] value) Sets a value forFlightSql.SqlInfo.SQL_NUMERIC_FUNCTIONSin the builder.Sets a value forFlightSql.SqlInfo.SQL_OUTER_JOINS_SUPPORT_LEVELin the builder.withSqlProcedureTerm(String value) Sets a value forFlightSql.SqlInfo.SQL_PROCEDURE_TERMin the builder.Sets a value forFlightSql.SqlInfo.SQL_QUOTED_IDENTIFIER_CASEin 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_ACTIONSin the builder.withSqlSchemaTerm(String value) Sets a value forFlightSql.SqlInfo.SQL_SCHEMA_TERMin the builder.withSqlSearchStringEscape(String value) Sets a value forFlightSql.SqlInfo.SQL_SEARCH_STRING_ESCAPEin the builder.withSqlSelectForUpdateSupported(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SELECT_FOR_UPDATE_SUPPORTEDin the builder.withSqlStoredFunctionsUsingCallSyntaxSupported(boolean value) Sets a value forFlightSql.SqlInfo.SQL_STORED_FUNCTIONS_USING_CALL_SYNTAX_SUPPORTEDin the builder.withSqlStoredProceduresSupported(boolean value) Sets a value forFlightSql.SqlInfo.SQL_STORED_PROCEDURES_SUPPORTEDin the builder.withSqlStringFunctions(String[] value) Sets a value forFlightSql.SqlInfo.SQL_STRING_FUNCTIONSin the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_SUBQUERIESin the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_GRAMMARin the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_GROUP_BYin the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_POSITIONED_COMMANDSin the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_RESULT_SET_TYPESin the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_TRANSACTIONS_ISOLATION_LEVELSin the builder.Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_UNIONSin the builder.withSqlSupportsColumnAliasing(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_COLUMN_ALIASINGin the builder.withSqlSupportsConvert(Map<Integer, List<Integer>> value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_CONVERTin the builder.withSqlSupportsDifferentTableCorrelationNames(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_DIFFERENT_TABLE_CORRELATION_NAMESin the builder.withSqlSupportsExpressionsInOrderBy(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_EXPRESSIONS_IN_ORDER_BYin the builder.withSqlSupportsIntegrityEnhancementFacility(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_INTEGRITY_ENHANCEMENT_FACILITYin the builder.withSqlSupportsLikeEscapeClause(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_LIKE_ESCAPE_CLAUSEin the builder.withSqlSupportsNonNullableColumns(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_NON_NULLABLE_COLUMNSin the builder.withSqlSupportsOrderByUnrelated(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_ORDER_BY_UNRELATEDin the builder.withSqlSupportsTableCorrelationNames(boolean value) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_TABLE_CORRELATION_NAMESin the builder.withSqlSystemFunctions(String[] value) Sets a value forFlightSql.SqlInfo.SQL_SYSTEM_FUNCTIONSin the builder.withSqlTransactionsSupported(boolean value) Sets a value forFlightSql.SqlInfo.SQL_TRANSACTIONS_SUPPORTEDin the builder.
-
Constructor Details
-
SqlInfoBuilder
public SqlInfoBuilder()
-
-
Method Details
-
getHolderForUtf8
- Parameters:
string- theStandardCharsets.UTF_8-encoded text input to store onto the holder.buf- theArrowBuffrom which to create the new holder.- Returns:
- a new
NullableVarCharHolderwith the provided input datastring.
-
withFlightSqlServerName
Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_NAMEin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_NAMEto be set.- Returns:
- the SqlInfoBuilder itself.
-
withFlightSqlServerVersion
Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_VERSIONin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_VERSIONto be set.- Returns:
- the SqlInfoBuilder itself.
-
withFlightSqlServerArrowVersion
Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_ARROW_VERSIONin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_ARROW_VERSIONto 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. -
withFlightSqlServerBulkIngestion
Set a value for bulk ingestion support. -
withFlightSqlServerBulkIngestionTransaction
Set a value for transaction support for bulk ingestion. -
withFlightSqlServerStatementTimeout
Set a value for statement timeouts. -
withFlightSqlServerTransactionTimeout
Set a value for transaction timeouts. -
withSqlIdentifierQuoteChar
Sets a value forFlightSql.SqlInfo.SQL_IDENTIFIER_QUOTE_CHARin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_IDENTIFIER_QUOTE_CHARto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSearchStringEscape
Sets a value forFlightSql.SqlInfo.SQL_SEARCH_STRING_ESCAPEin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_SEARCH_STRING_ESCAPEto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlExtraNameCharacters
Sets a value forFlightSql.SqlInfo.SQL_EXTRA_NAME_CHARACTERSin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_EXTRA_NAME_CHARACTERSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSchemaTerm
Sets a value forFlightSql.SqlInfo.SQL_SCHEMA_TERMin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_SCHEMA_TERMto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlCatalogTerm
Sets a value forFlightSql.SqlInfo.SQL_CATALOG_TERMin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_CATALOG_TERMto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlProcedureTerm
Sets a value forFlightSql.SqlInfo.SQL_PROCEDURE_TERMin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_PROCEDURE_TERMto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDdlCatalog
Sets a value forFlightSql.SqlInfo.SQL_DDL_CATALOGin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_DDL_CATALOGto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDdlSchema
Sets a value forFlightSql.SqlInfo.SQL_DDL_SCHEMAin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_DDL_SCHEMAto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDdlTable
Sets a value forFlightSql.SqlInfo.SQL_DDL_TABLEin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_DDL_TABLEto be set.- Returns:
- the SqlInfoBuilder itself.
-
withFlightSqlServerReadOnly
Sets a value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_READ_ONLYin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.FLIGHT_SQL_SERVER_READ_ONLYto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsColumnAliasing
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_COLUMN_ALIASINGin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_SUPPORTS_COLUMN_ALIASINGto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlNullPlusNullIsNull
Sets a value forFlightSql.SqlInfo.SQL_NULL_PLUS_NULL_IS_NULLin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_NULL_PLUS_NULL_IS_NULLto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsTableCorrelationNames
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_TABLE_CORRELATION_NAMESin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_SUPPORTS_TABLE_CORRELATION_NAMESto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsDifferentTableCorrelationNames
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_DIFFERENT_TABLE_CORRELATION_NAMESin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_SUPPORTS_DIFFERENT_TABLE_CORRELATION_NAMESto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsExpressionsInOrderBy
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_EXPRESSIONS_IN_ORDER_BYin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_SUPPORTS_EXPRESSIONS_IN_ORDER_BYto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsLikeEscapeClause
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_LIKE_ESCAPE_CLAUSEin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_SUPPORTS_LIKE_ESCAPE_CLAUSEto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsNonNullableColumns
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_NON_NULLABLE_COLUMNSin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_SUPPORTS_NON_NULLABLE_COLUMNSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsIntegrityEnhancementFacility
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_INTEGRITY_ENHANCEMENT_FACILITYin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_SUPPORTS_INTEGRITY_ENHANCEMENT_FACILITYto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlCatalogAtStart
Sets a value forFlightSql.SqlInfo.SQL_CATALOG_AT_STARTin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_CATALOG_AT_STARTto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSelectForUpdateSupported
Sets a value forFlightSql.SqlInfo.SQL_SELECT_FOR_UPDATE_SUPPORTEDin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_SELECT_FOR_UPDATE_SUPPORTEDto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlStoredProceduresSupported
Sets a value forFlightSql.SqlInfo.SQL_STORED_PROCEDURES_SUPPORTEDin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_STORED_PROCEDURES_SUPPORTEDto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxRowSizeIncludesBlobs
Sets a value forFlightSql.SqlInfo.SQL_MAX_ROW_SIZE_INCLUDES_BLOBSin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_ROW_SIZE_INCLUDES_BLOBSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlTransactionsSupported
Sets a value forFlightSql.SqlInfo.SQL_TRANSACTIONS_SUPPORTEDin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_TRANSACTIONS_SUPPORTEDto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDataDefinitionCausesTransactionCommit
Sets a value forFlightSql.SqlInfo.SQL_DATA_DEFINITION_CAUSES_TRANSACTION_COMMITin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_DATA_DEFINITION_CAUSES_TRANSACTION_COMMITto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDataDefinitionsInTransactionsIgnored
Sets a value forFlightSql.SqlInfo.SQL_DATA_DEFINITIONS_IN_TRANSACTIONS_IGNOREDin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_DATA_DEFINITIONS_IN_TRANSACTIONS_IGNOREDto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlBatchUpdatesSupported
Sets a value forFlightSql.SqlInfo.SQL_BATCH_UPDATES_SUPPORTEDin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_BATCH_UPDATES_SUPPORTEDto 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_SUPPORTEDto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlNamedParametersSupported
Sets a value forFlightSql.SqlInfo.SQL_NAMED_PARAMETERS_SUPPORTEDin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_NAMED_PARAMETERS_SUPPORTEDto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlLocatorsUpdateCopy
Sets a value forFlightSql.SqlInfo.SQL_LOCATORS_UPDATE_COPYin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_LOCATORS_UPDATE_COPYto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlStoredFunctionsUsingCallSyntaxSupported
Sets a value forFlightSql.SqlInfo.SQL_STORED_FUNCTIONS_USING_CALL_SYNTAX_SUPPORTEDin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_STORED_FUNCTIONS_USING_CALL_SYNTAX_SUPPORTEDto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlIdentifierCase
Sets a value forFlightSql.SqlInfo.SQL_IDENTIFIER_CASEin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_IDENTIFIER_CASEto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlQuotedIdentifierCase
Sets a value forFlightSql.SqlInfo.SQL_QUOTED_IDENTIFIER_CASEin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_QUOTED_IDENTIFIER_CASEto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlAllTablesAreSelectable
Sets a value forFlightSql.SqlInfo.SQL_ALL_TABLES_ARE_SELECTABLEin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_ALL_TABLES_ARE_SELECTABLEto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlNullOrdering
Sets a value forFlightSql.SqlInfo.SQL_NULL_ORDERINGin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_NULL_ORDERINGto 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_LENGTHto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxCharLiteralLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_CHAR_LITERAL_LENGTHin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_CHAR_LITERAL_LENGTHto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxColumnNameLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMN_NAME_LENGTHin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_COLUMN_NAME_LENGTHto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxColumnsInGroupBy
Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_GROUP_BYin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_GROUP_BYto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxColumnsInIndex
Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_INDEXin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_INDEXto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxColumnsInOrderBy
Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_ORDER_BYin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_ORDER_BYto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxColumnsInSelect
Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_SELECTin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_SELECTto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxColumnsInTable
Sets a value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_TABLEin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_COLUMNS_IN_TABLEto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxConnections
Sets a value forFlightSql.SqlInfo.SQL_MAX_CONNECTIONSin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_CONNECTIONSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxCursorNameLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_CURSOR_NAME_LENGTHin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_CURSOR_NAME_LENGTHto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxIndexLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_INDEX_LENGTHin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_INDEX_LENGTHto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDbSchemaNameLength
Sets a value forFlightSql.SqlInfo.SQL_DB_SCHEMA_NAME_LENGTHin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_DB_SCHEMA_NAME_LENGTHto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxProcedureNameLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_PROCEDURE_NAME_LENGTHin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_PROCEDURE_NAME_LENGTHto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxCatalogNameLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_CATALOG_NAME_LENGTHin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_CATALOG_NAME_LENGTHto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxRowSize
Sets a value forFlightSql.SqlInfo.SQL_MAX_ROW_SIZEin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_ROW_SIZEto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxStatementLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_STATEMENT_LENGTHin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_STATEMENT_LENGTHto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxStatements
Sets a value forFlightSql.SqlInfo.SQL_MAX_STATEMENTSin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_STATEMENTSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxTableNameLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_TABLE_NAME_LENGTHin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_TABLE_NAME_LENGTHto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxTablesInSelect
Sets a value forFlightSql.SqlInfo.SQL_MAX_TABLES_IN_SELECTin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_TABLES_IN_SELECTto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlMaxUsernameLength
Sets a value forFlightSql.SqlInfo.SQL_MAX_USERNAME_LENGTHin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_MAX_USERNAME_LENGTHto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDefaultTransactionIsolation
Sets a value forFlightSql.SqlInfo.SQL_DEFAULT_TRANSACTION_ISOLATIONin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_DEFAULT_TRANSACTION_ISOLATIONto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportedGroupBy
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_GROUP_BYin the builder.- Parameters:
values- the value forFlightSql.SqlInfo.SQL_SUPPORTED_GROUP_BYto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportedGrammar
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_GRAMMARin the builder.- Parameters:
values- the value forFlightSql.SqlInfo.SQL_SUPPORTED_GRAMMARto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlAnsi92SupportedLevel
public SqlInfoBuilder withSqlAnsi92SupportedLevel(FlightSql.SupportedAnsi92SqlGrammarLevel... values) Sets a value forFlightSql.SqlInfo.SQL_ANSI92_SUPPORTED_LEVELin the builder.- Parameters:
values- the value forFlightSql.SqlInfo.SQL_ANSI92_SUPPORTED_LEVELto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSchemasSupportedActions
public SqlInfoBuilder withSqlSchemasSupportedActions(FlightSql.SqlSupportedElementActions... values) Sets a value forFlightSql.SqlInfo.SQL_SCHEMAS_SUPPORTED_ACTIONSin the builder.- Parameters:
values- the value forFlightSql.SqlInfo.SQL_SCHEMAS_SUPPORTED_ACTIONSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlCatalogsSupportedActions
public SqlInfoBuilder withSqlCatalogsSupportedActions(FlightSql.SqlSupportedElementActions... values) Sets a value forFlightSql.SqlInfo.SQL_CATALOGS_SUPPORTED_ACTIONSin the builder.- Parameters:
values- the value forFlightSql.SqlInfo.SQL_CATALOGS_SUPPORTED_ACTIONSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportedPositionedCommands
public SqlInfoBuilder withSqlSupportedPositionedCommands(FlightSql.SqlSupportedPositionedCommands... values) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_POSITIONED_COMMANDSin the builder.- Parameters:
values- the value forFlightSql.SqlInfo.SQL_SUPPORTED_POSITIONED_COMMANDSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSubQueriesSupported
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_SUBQUERIESin the builder.- Parameters:
values- the value forFlightSql.SqlInfo.SQL_SUPPORTED_SUBQUERIESto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportedUnions
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_UNIONSin the builder.- Parameters:
values- the values forFlightSql.SqlInfo.SQL_SUPPORTED_UNIONSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlOuterJoinSupportLevel
Sets a value forFlightSql.SqlInfo.SQL_OUTER_JOINS_SUPPORT_LEVELin the builder.- Parameters:
value- the value forFlightSql.SqlInfo.SQL_OUTER_JOINS_SUPPORT_LEVELto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportedTransactionsIsolationLevels
public SqlInfoBuilder withSqlSupportedTransactionsIsolationLevels(FlightSql.SqlTransactionIsolationLevel... values) Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_TRANSACTIONS_ISOLATION_LEVELSin the builder.- Parameters:
values- the values forFlightSql.SqlInfo.SQL_SUPPORTED_TRANSACTIONS_ISOLATION_LEVELSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportedResultSetTypes
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTED_RESULT_SET_TYPESin the builder.- Parameters:
values- the values forFlightSql.SqlInfo.SQL_SUPPORTED_RESULT_SET_TYPESto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlKeywords
Sets a value forFlightSql.SqlInfo.SQL_KEYWORDSin the builder.- Parameters:
value- the values forFlightSql.SqlInfo.SQL_KEYWORDSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlNumericFunctions
Sets a value forFlightSql.SqlInfo.SQL_NUMERIC_FUNCTIONSin the builder.- Parameters:
value- the values forFlightSql.SqlInfo.SQL_NUMERIC_FUNCTIONSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlStringFunctions
Sets a value forFlightSql.SqlInfo.SQL_STRING_FUNCTIONSin the builder.- Parameters:
value- the values forFlightSql.SqlInfo.SQL_STRING_FUNCTIONSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSystemFunctions
Sets a value forFlightSql.SqlInfo.SQL_SYSTEM_FUNCTIONSin the builder.- Parameters:
value- the values forFlightSql.SqlInfo.SQL_SYSTEM_FUNCTIONSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlDatetimeFunctions
Sets a value forFlightSql.SqlInfo.SQL_DATETIME_FUNCTIONSin the builder.- Parameters:
value- the values forFlightSql.SqlInfo.SQL_DATETIME_FUNCTIONSto be set.- Returns:
- the SqlInfoBuilder itself.
-
withSqlSupportsConvert
Sets a value forFlightSql.SqlInfo.SQL_SUPPORTS_CONVERTin the builder.- Parameters:
value- the values forFlightSql.SqlInfo.SQL_SUPPORTS_CONVERTto 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.
-