Class DatabricksStruct
java.lang.Object
com.databricks.jdbc.api.impl.DatabricksStruct
-
Constructor Summary
ConstructorsConstructorDescriptionDatabricksStruct(Map<String, Object> attributes, String metadata) Constructs a DatabricksStruct with the specified attributes and metadata. -
Method Summary
Modifier and TypeMethodDescriptionObject[]Retrieves the attributes of this Struct as an array.Object[]getAttributes(Map<String, Class<?>> map) Retrieves the attributes of this Struct as an array, using the specified type map.Retrieves the SQL type name of this Struct.toString()Returns a JSON-like string with field names.
-
Constructor Details
-
DatabricksStruct
-
-
Method Details
-
getSQLTypeName
Retrieves the SQL type name of this Struct.- Specified by:
getSQLTypeNamein interfaceStruct- Returns:
- the SQL type name of this Struct
- Throws:
SQLException- if a database access error occurs
-
getAttributes
Retrieves the attributes of this Struct as an array.- Specified by:
getAttributesin interfaceStruct- Returns:
- an array containing the attributes of the Struct
- Throws:
SQLException- if a database access error occurs
-
getAttributes
Retrieves the attributes of this Struct as an array, using the specified type map.- Specified by:
getAttributesin interfaceStruct- Parameters:
map- a Map object that contains the mapping of SQL types to Java classes- Returns:
- an array containing the attributes of the Struct
- Throws:
SQLException- if a database access error occurs
-
toString
-