Interface Printer
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
Printer.ClearCommandPrinter,Printer.HelpCommandPrinter,Printer.InitializationCommandPrinter,Printer.QuitCommandPrinter,Printer.StatementResultPrinter
Printer to print the results to the terminal.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classPrinter to clear the terminal.static classPrinter to print the HELP results.static classPrinter prints the initialization command results.static classPrinter to print the QUIT messages.static classPrinter prints the statement results. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Close the resource of thePrinter.static Printer.ClearCommandPrinterstatic Printer.HelpCommandPrinterstatic Printer.QuitCommandPrintercreateStatementCommandPrinter(StatementResult result, org.apache.flink.configuration.ReadableConfig sessionConfig, long startTime) booleanFlag to determine whether to quit the process.voidprint(org.jline.terminal.Terminal terminal) Print the results to the terminal.static void
-
Method Details
-
isQuitCommand
boolean isQuitCommand()Flag to determine whether to quit the process. -
print
void print(org.jline.terminal.Terminal terminal) Print the results to the terminal. -
close
default void close()Close the resource of thePrinter.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
createClearCommandPrinter
-
createQuitCommandPrinter
-
createHelpCommandPrinter
-
createStatementCommandPrinter
static Printer.StatementResultPrinter createStatementCommandPrinter(StatementResult result, org.apache.flink.configuration.ReadableConfig sessionConfig, long startTime) -
createInitializationCommandPrinter
-
printInfo
-