Interface Printer
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
Printer.ClearCommandPrinter,Printer.HelpCommandPrinter,Printer.InitializationCommandPrinter,Printer.QuitCommandPrinter,Printer.StatementResultPrinter
public interface Printer extends Closeable
Printer to print the results to the terminal.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPrinter.ClearCommandPrinterPrinter to clear the terminal.static classPrinter.HelpCommandPrinterPrinter to print the HELP results.static classPrinter.InitializationCommandPrinterPrinter prints the initialization command results.static classPrinter.QuitCommandPrinterPrinter to print the QUIT messages.static classPrinter.StatementResultPrinterPrinter prints the statement results.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()Close the resource of thePrinter.static Printer.ClearCommandPrintercreateClearCommandPrinter()static Printer.HelpCommandPrintercreateHelpCommandPrinter()static Printer.InitializationCommandPrintercreateInitializationCommandPrinter()static Printer.QuitCommandPrintercreateQuitCommandPrinter()static Printer.StatementResultPrintercreateStatementCommandPrinter(StatementResult result, org.apache.flink.configuration.ReadableConfig sessionConfig)booleanisQuitCommand()Flag to determine whether to quit the process.voidprint(org.jline.terminal.Terminal terminal)Print the results to the terminal.static voidprintInfo(org.jline.terminal.Terminal terminal, String message)
-
-
-
Method Detail
-
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
static Printer.ClearCommandPrinter createClearCommandPrinter()
-
createQuitCommandPrinter
static Printer.QuitCommandPrinter createQuitCommandPrinter()
-
createHelpCommandPrinter
static Printer.HelpCommandPrinter createHelpCommandPrinter()
-
createStatementCommandPrinter
static Printer.StatementResultPrinter createStatementCommandPrinter(StatementResult result, org.apache.flink.configuration.ReadableConfig sessionConfig)
-
createInitializationCommandPrinter
static Printer.InitializationCommandPrinter createInitializationCommandPrinter()
-
printInfo
static void printInfo(org.jline.terminal.Terminal terminal, String message)
-
-