| Package | Description |
|---|---|
| com.snowflake.snowpark_java |
Provides most of the classes for the Snowpark Java API.
|
| com.snowflake.snowpark_java.types |
Provides the classes specifying the schema (the data types of the fields) of semi-structured data.
|
| com.snowflake.snowpark_java.udtf |
| Modifier and Type | Method and Description |
|---|---|
StructType |
WriteFileResult.getSchema()
Retrieve the names and types of the fields in the output rows.
|
StructType |
DataFrame.schema()
Retrieves the definition of the columns in this DataFrame (the "relational schema" for the
DataFrame).
|
| Modifier and Type | Method and Description |
|---|---|
DataFrame |
Session.createDataFrame(Row[] data,
StructType schema)
Creates a new DataFrame that uses the specified schema and contains the specified Row objects.
|
DataFrameReader |
DataFrameReader.schema(StructType schema)
Returns a DataFrameReader instance with the specified schema configuration for the data to be
read.
|
| Modifier and Type | Method and Description |
|---|---|
StructType |
StructType.add(String name,
DataType dataType)
Creates new StructType by appending a new StructField with the given info to the end of this
StructType.
|
StructType |
StructType.add(String name,
DataType dataType,
boolean nullable)
Creates new StructType by appending a new StructField with the given info to the end of this
StructType.
|
StructType |
StructType.add(StructField field)
Creates new StructType by appending the given StructField to the end of this StructType.
|
static StructType |
StructType.create(StructField... fields)
Creates a StructType object based on the given StructField
|
| Constructor and Description |
|---|
StructType(StructType other)
Clones the given StructType object.
|
| Modifier and Type | Method and Description |
|---|---|
default StructType |
JavaUDTF.inputSchema() |
StructType |
JavaUDTF.outputSchema() |
© 2022 Snowflake Inc. All Rights Reserved