Package io.trino.cli
Class CsvPrinter
- java.lang.Object
-
- io.trino.cli.CsvPrinter
-
- All Implemented Interfaces:
OutputPrinter
public class CsvPrinter extends Object implements OutputPrinter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCsvPrinter.CsvOutputFormat
-
Constructor Summary
Constructors Constructor Description CsvPrinter(List<String> fieldNames, Writer writer, CsvPrinter.CsvOutputFormat csvOutputFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinish()voidprintRows(List<List<?>> rows, boolean complete)
-
-
-
Constructor Detail
-
CsvPrinter
public CsvPrinter(List<String> fieldNames, Writer writer, CsvPrinter.CsvOutputFormat csvOutputFormat)
-
-
Method Detail
-
printRows
public void printRows(List<List<?>> rows, boolean complete) throws IOException
- Specified by:
printRowsin interfaceOutputPrinter- Throws:
IOException
-
finish
public void finish() throws IOException- Specified by:
finishin interfaceOutputPrinter- Throws:
IOException
-
-