Class ProtocolFeatureUtil
java.lang.Object
com.databricks.jdbc.common.util.ProtocolFeatureUtil
Utility class for checking Spark protocol version features. Provides methods to determine if
specific protocol features are supported.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisNonDatabricksCompute(TProtocolVersion protocolVersion) Checks if the given protocol version indicates a non-Databricks compute.static booleansupportsAdvancedArrowTypes(TProtocolVersion protocolVersion) Checks if the given protocol version supports advanced Arrow types.static booleansupportsArrowMetadata(TProtocolVersion protocolVersion) Checks if the given protocol version supports Arrow metadata in result sets.static booleansupportsAsyncMetadataExecution(TProtocolVersion protocolVersion) Checks if the given protocol version supports async metadata execution.static booleansupportsAsyncMetadataOperations(TProtocolVersion protocolVersion) Checks if the given protocol version supports async metadata operations.static booleansupportsCloudFetch(TProtocolVersion protocolVersion) Checks if the given protocol version supports cloud result fetching.static booleansupportsCompressedArrowBatches(TProtocolVersion protocolVersion) Checks if the given protocol version supports compressed Arrow batches.static booleansupportsDirectResults(TProtocolVersion protocolVersion) Checks if the given protocol version supports direct results.static booleansupportsGetInfosInOpenSession(TProtocolVersion protocolVersion) Checks if the given protocol version supports getting additional information in OpenSession.static booleansupportsModifiedHasMoreRowsSemantics(TProtocolVersion protocolVersion) Checks if the given protocol version supports modified hasMoreRows semantics.static booleansupportsMultipleCatalogs(TProtocolVersion protocolVersion) Checks if the given protocol version supports multiple catalogs in metadata operations.static booleansupportsParameterizedQueries(TProtocolVersion protocolVersion) Checks if the given protocol version supports parameterized queries.static booleansupportsResultPersistenceMode(TProtocolVersion protocolVersion) Checks if the given protocol version supports result persistence mode.static booleansupportsResultSetMetadataFromFetch(TProtocolVersion protocolVersion) Checks if the given protocol version supports getting result set metadata from fetch results.
-
Method Details
-
supportsGetInfosInOpenSession
Checks if the given protocol version supports getting additional information in OpenSession.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if getInfos in OpenSession is supported, false otherwise
-
supportsDirectResults
Checks if the given protocol version supports direct results.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if direct results are supported, false otherwise
-
supportsModifiedHasMoreRowsSemantics
Checks if the given protocol version supports modified hasMoreRows semantics.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if modified hasMoreRows semantics are supported, false otherwise
-
supportsCloudFetch
Checks if the given protocol version supports cloud result fetching.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if cloud fetch is supported, false otherwise
-
supportsMultipleCatalogs
Checks if the given protocol version supports multiple catalogs in metadata operations.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if multiple catalogs are supported, false otherwise
-
supportsArrowMetadata
Checks if the given protocol version supports Arrow metadata in result sets.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if Arrow metadata is supported, false otherwise
-
supportsResultSetMetadataFromFetch
Checks if the given protocol version supports getting result set metadata from fetch results.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if getting result set metadata from fetch is supported, false otherwise
-
supportsAdvancedArrowTypes
Checks if the given protocol version supports advanced Arrow types.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if advanced Arrow types are supported, false otherwise
-
supportsCompressedArrowBatches
Checks if the given protocol version supports compressed Arrow batches.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if compressed Arrow batches are supported, false otherwise
-
supportsAsyncMetadataExecution
Checks if the given protocol version supports async metadata execution.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if async metadata execution is supported, false otherwise
-
supportsResultPersistenceMode
Checks if the given protocol version supports result persistence mode.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if result persistence mode is supported, false otherwise
-
supportsParameterizedQueries
Checks if the given protocol version supports parameterized queries.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if parameterized queries are supported, false otherwise
-
supportsAsyncMetadataOperations
Checks if the given protocol version supports async metadata operations.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if async metadata operations are supported, false otherwise
-
isNonDatabricksCompute
Checks if the given protocol version indicates a non-Databricks compute.- Parameters:
protocolVersion- The protocol version to check- Returns:
- true if this is a non-Databricks compute, false otherwise
-