presto-cli/src/main/java/io/prestosql/cli/TsvPrinter.java/TsvPrinter/printRows
class TsvPrinter:    @Override
    public void printRows(List<List<?>> rows, boolean complete)
            throws IOException
    {
        if (needHeader) {
            needHeader = false;
            printRows(ImmutableList.of(fieldNames), false);
        }

        for (List<?> row : rows) {
            writer.write(formatRow(row));
        }
    }