Class CliInputView
- java.lang.Object
-
- org.apache.flink.table.client.cli.CliView<CliInputView.InputOperation,String>
-
- org.apache.flink.table.client.cli.CliInputView
-
public class CliInputView extends CliView<CliInputView.InputOperation,String>
CLI view for entering a string.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CliInputView.InputOperation
Available operations for this view.
-
Constructor Summary
Constructors Constructor Description CliInputView(org.jline.terminal.Terminal terminal, String inputTitle, Predicate<String> validation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cleanUp()
protected List<org.jline.utils.AttributedString>
computeFooterLines()
protected List<org.jline.utils.AttributedString>
computeHeaderLines()
protected List<org.jline.utils.AttributedString>
computeMainHeaderLines()
protected List<org.jline.utils.AttributedString>
computeMainLines()
protected void
evaluate(CliInputView.InputOperation operation, String binding)
protected org.jline.keymap.KeyMap<CliInputView.InputOperation>
getKeys()
protected String
getTitle()
protected void
init()
Starts threads if necessary.-
Methods inherited from class org.apache.flink.table.client.cli.CliView
clearTerminal, close, close, close, display, getFooterLines, getHeaderLines, getHeight, getMainHeaderLines, getMainLines, getResult, getTerminalHeight, getTerminalWidth, getTitleLine, getTotalMainWidth, getVisibleMainHeight, getWidth, isRunning, open, resetAllParts, resetMainPart, scrollDown, scrollDown, scrollLeft, scrollRight, scrollUp
-
-
-
-
Method Detail
-
init
protected void init()
Description copied from class:CliView
Starts threads if necessary.- Specified by:
init
in classCliView<CliInputView.InputOperation,String>
-
getKeys
protected org.jline.keymap.KeyMap<CliInputView.InputOperation> getKeys()
- Specified by:
getKeys
in classCliView<CliInputView.InputOperation,String>
-
evaluate
protected void evaluate(CliInputView.InputOperation operation, String binding)
- Specified by:
evaluate
in classCliView<CliInputView.InputOperation,String>
-
getTitle
protected String getTitle()
- Specified by:
getTitle
in classCliView<CliInputView.InputOperation,String>
-
computeHeaderLines
protected List<org.jline.utils.AttributedString> computeHeaderLines()
- Specified by:
computeHeaderLines
in classCliView<CliInputView.InputOperation,String>
-
computeFooterLines
protected List<org.jline.utils.AttributedString> computeFooterLines()
- Specified by:
computeFooterLines
in classCliView<CliInputView.InputOperation,String>
-
computeMainHeaderLines
protected List<org.jline.utils.AttributedString> computeMainHeaderLines()
- Specified by:
computeMainHeaderLines
in classCliView<CliInputView.InputOperation,String>
-
computeMainLines
protected List<org.jline.utils.AttributedString> computeMainLines()
- Specified by:
computeMainLines
in classCliView<CliInputView.InputOperation,String>
-
cleanUp
protected void cleanUp()
- Specified by:
cleanUp
in classCliView<CliInputView.InputOperation,String>
-
-