Source
Tutorial: Snowflake Native SDK for Connectors Java connector template
Java connector template Preview Feature — OpenAvailable to accounts in all regions in all cloud providers (including government regions).
CSVRecordSetWriter
Writes the contents of a RecordSet as CSV data. The first line written will be the column names (unless the ‘Include Header Line’ property is false). All subsequent lines will be the values corresponding to the record fields.