@Override
    public void print(Iterator<RowData> it, PrintWriter printWriter) {
        if (!it.hasNext()) {
            printEmptyResult(it, printWriter);
            return;
        }
        long numRows = printTable(it, printWriter);
        printFooter(printWriter, numRows);
    }
@Test
    void testPrintWithEmptyResult() {
        PrintStyle.tableauWithDataInferredColumnWidths(getSchema(), getConverter())
                .print(Collections.emptyIterator(), new PrintWriter(outContent));

        assertThat(outContent.toString()).isEqualTo("Empty set" + System.lineSeparator());
    }