private void printSourceDescription(final SourceDescription source) {
writer().println(String.format("%-20s : %s", "Name", source.getName()));
if (!source.isExtended()) {
printSchema(source.getFields(), source.getKey());
writer().println(
"For runtime statistics and query details run: DESCRIBE EXTENDED <Stream,Table>;");
return;
}
writer().println(String.format("%-20s : %s", "Type", source.getType()));
printTopicInfo(source);
writer().println("");
printSchema(source.getFields(), source.getKey());
printWriteQueries(source);
writer().println(String.format(
"%n%-20s%n%s",
"Local runtime statistics",
"------------------------"
));
writer().println(source.getStatistics());
writer().println(source.getErrorStats());
writer().println(String.format(
"(%s)",
"Statistics of the local KSQL server interaction with the Kafka topic "
+ source.getTopic()
));
}