@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 |
printTableauRow(String[] cols,
PrintWriter printWriter) |
String[] |
rowFieldsToString(RowData row) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
rawContent, tableauWithDataInferredColumnWidths, tableauWithDataInferredColumnWidths, tableauWithTypeInferredColumnWidths
@Nullable public int[] getColumnWidths()
public void print(Iterator<RowData> it, PrintWriter printWriter)
PrintStyle
print
in interface PrintStyle
it
- The iterator for the data to printprintWriter
- The writer to write topublic void printColumnNamesTableauRow(PrintWriter printWriter)
public void printTableauRow(String[] cols, PrintWriter printWriter)
public void printBorderLine(PrintWriter printWriter)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.