Package com.databricks.jdbc.api.impl
Class DatabricksStruct
- java.lang.Object
-
- com.databricks.jdbc.api.impl.DatabricksStruct
-
-
Constructor Summary
Constructors Constructor Description DatabricksStruct(Map<String,Object> attributes, String metadata)Constructs a DatabricksStruct with the specified attributes and metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]getAttributes()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.StringgetSQLTypeName()Retrieves the SQL type name of this Struct.StringtoString()Returns a JSON-like string with field names.
-
-
-
Method Detail
-
getSQLTypeName
public String getSQLTypeName() throws SQLException
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
public Object[] getAttributes() throws SQLException
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
public Object[] getAttributes(Map<String,Class<?>> map) throws SQLException
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
-
-