@Internal
public interface PrintStyle
PrintStyle defines style and formatting to print a collection of RowData.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_COLUMN_WIDTH
Default max column width.
|
static String |
NULL_VALUE
Value used to print
null. |
| Modifier and Type | Method and Description |
|---|---|
void |
print(Iterator<RowData> it,
PrintWriter printWriter)
Displays the result.
|
static RawContentStyle |
rawContent(RowDataToStringConverter converter)
Create a raw content print style, which only print the result content as raw form. column
delimiter is ",", row delimiter is "\n".
|
static TableauStyle |
tableauWithDataInferredColumnWidths(ResolvedSchema schema,
RowDataToStringConverter converter)
Like
tableauWithDataInferredColumnWidths(ResolvedSchema, RowDataToStringConverter,
int, boolean, boolean), but using default values. |
static TableauStyle |
tableauWithDataInferredColumnWidths(ResolvedSchema schema,
RowDataToStringConverter converter,
int maxColumnWidth,
boolean printNullAsEmpty,
boolean printRowKind)
Like
tableauWithTypeInferredColumnWidths(ResolvedSchema, RowDataToStringConverter,
int, boolean, boolean), but uses the data to infer the column size. |
static TableauStyle |
tableauWithTypeInferredColumnWidths(ResolvedSchema schema,
RowDataToStringConverter converter,
int maxColumnWidth,
boolean printNullAsEmpty,
boolean printRowKind)
Create a new
TableauStyle using column widths computed from the type. |
static final int DEFAULT_MAX_COLUMN_WIDTH
static final String NULL_VALUE
null.void print(Iterator<RowData> it, PrintWriter printWriter)
it - The iterator for the data to printprintWriter - The writer to write tostatic TableauStyle tableauWithTypeInferredColumnWidths(ResolvedSchema schema, RowDataToStringConverter converter, int maxColumnWidth, boolean printNullAsEmpty, boolean printRowKind)
TableauStyle using column widths computed from the type.schema - the schema of the data to printconverter - the converter to use to convert field values to stringmaxColumnWidth - Max column widthprintNullAsEmpty - A flag to indicate whether null should be printed as empty string
more than <NULL>printRowKind - A flag to indicate whether print row kind info.static TableauStyle tableauWithDataInferredColumnWidths(ResolvedSchema schema, RowDataToStringConverter converter, int maxColumnWidth, boolean printNullAsEmpty, boolean printRowKind)
tableauWithTypeInferredColumnWidths(ResolvedSchema, RowDataToStringConverter,
int, boolean, boolean), but uses the data to infer the column size.
NOTE: please make sure the data to print is small enough to be stored in java heap memory.
static TableauStyle tableauWithDataInferredColumnWidths(ResolvedSchema schema, RowDataToStringConverter converter)
tableauWithDataInferredColumnWidths(ResolvedSchema, RowDataToStringConverter,
int, boolean, boolean), but using default values.
NOTE: please make sure the data to print is small enough to be stored in java heap memory.
static RawContentStyle rawContent(RowDataToStringConverter converter)
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.