private byte [ ] createCSVRecord ( String [ ] data ) { StringBuilder sb = new StringBuilder ( 1024 ) ; for ( int i = 0 ; i < data . length ; ++ i ) { if ( i > 0 ) { sb . append ( ' ' ) ; } sb . append ( SnowflakeType . escapeForCSV ( data [ i ] ) ) ; } sb . append ( ' ' ) ; return sb . toString ( ) . getBytes ( UTF_8 ) ; }
Serialize row to a csv Duplicated from StreamLoader class