@Internal public final class TableauStyle extends Object implements PrintStyle
For example: (printRowKind is true)
+----+-------------+---------+-------------+ | op | boolean_col | int_col | varchar_col | +----+-------------+---------+-------------+ | +I | true | 1 | abc | | -U | false | 2 | def | | +U | false | 3 | def | | -D | <NULL> | <NULL> | <NULL> | +----+-------------+---------+-------------+ 4 rows in set
DEFAULT_MAX_COLUMN_WIDTH, NULL_VALUE| Modifier and Type | Method and Description |
|---|---|
int[] |
getColumnWidths()
Returns null if the column widths are not precomputed using the row type.
|
void |
inferColumnWidth(List<String[]> rowData) |
void |
print(Iterator<RowData> it,
PrintWriter printWriter)
Displays the result.
|
void |
printBorderLine(PrintWriter printWriter) |
void |
printColumnNamesTableauRow(PrintWriter printWriter) |
void |
printEmptyResult(Iterator<RowData> it,
PrintWriter printWriter) |
void |
printFooter(PrintWriter printWriter,
long numRows) |
long |
printTable(Iterator<RowData> it,
PrintWriter printWriter)
Print table with column names and borders.
|
void |
printTableauRow(String[] cols,
PrintWriter printWriter) |
String[] |
rowFieldsToString(RowData row) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrawContent, tableauWithDataInferredColumnWidths, tableauWithDataInferredColumnWidths, tableauWithTypeInferredColumnWidths@Nullable public int[] getColumnWidths()
public void print(Iterator<RowData> it, PrintWriter printWriter)
PrintStyleprint in interface PrintStyleit - The iterator for the data to printprintWriter - The writer to write topublic void printEmptyResult(Iterator<RowData> it, PrintWriter printWriter)
public long printTable(Iterator<RowData> it, PrintWriter printWriter)
public void printFooter(PrintWriter printWriter, long numRows)
public void printColumnNamesTableauRow(PrintWriter printWriter)
public void printTableauRow(String[] cols, PrintWriter printWriter)
public void printBorderLine(PrintWriter printWriter)
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.