@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. |
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–2024 The Apache Software Foundation. All rights reserved.