public class WriteFileResult extends Object
To write the data, the DataFrameWriter effectively executes the COPY INTO <location> command. WriteFileResult encapsulates the output returned by the command:
For example, if the DETAILED_OUTPUT option is TRUE, each row contains a `file_name`, `file_size`, and `row_count` field. `schema` defines the names and types of these fields. If the DETAILED_OUTPUT option is not specified (meaning that the option is FALSE), each row contains a `rows_unloaded`, `input_bytes`, and `output_bytes` field.
| Modifier and Type | Method and Description |
|---|---|
Row[] |
getRows()
Retrieve the output rows produced by the COPY INTO <location> command.
|
StructType |
getSchema()
Retrieve the names and types of the fields in the output rows.
|
public Row[] getRows()
Rowpublic StructType getSchema()
StructType© 2022 Snowflake Inc. All Rights Reserved