use of io.confluent.ksql.cli.console.table.builder.TableBuilder in project ksql by confluentinc.
the class Console method printSchema.
private void printSchema(final Optional<WindowType> windowType, final List<FieldInfo> fields, final boolean isTable) {
final Table.Builder tableBuilder = new Table.Builder();
if (!fields.isEmpty()) {
tableBuilder.withColumnHeaders("Field", "Type");
fields.forEach(f -> tableBuilder.withRow(f.getName(), formatFieldType(f, windowType, isTable)));
tableBuilder.build().print(this);
}
}
Aggregations