Class CliResultView<O extends Enum<O>>
java.lang.Object
org.apache.flink.table.client.cli.CliView<O,Void>
org.apache.flink.table.client.cli.CliResultView<O>
- Direct Known Subclasses:
CliChangelogResultView,CliTableResultView
Abstract CLI view for showing results (either as changelog or table).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final int[]protected static final intprotected intprotected final ResultDescriptorprotected intprotected final org.apache.flink.table.utils.print.TableauStyle -
Constructor Summary
ConstructorsConstructorDescriptionCliResultView(org.jline.terminal.Terminal terminal, ResultDescriptor resultDescriptor, org.apache.flink.table.utils.print.TableauStyle tableauStyle) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanUp()protected List<org.jline.utils.AttributedString>protected voiddecreaseRefreshInterval(int minInterval) protected abstract String[]protected voidprotected voidinit()Starts threads if necessary.protected booleanprotected voidopenRow()protected abstract voidrefresh()protected voidprotected voidprotected voidstopRetrieval(boolean cleanUpQuery) Methods inherited from class org.apache.flink.table.client.cli.CliView
clearTerminal, close, close, close, computeFooterLines, computeHeaderLines, computeMainHeaderLines, display, evaluate, getFooterLines, getHeaderLines, getHeight, getKeys, getMainHeaderLines, getMainLines, getResult, getTerminalHeight, getTerminalWidth, getTitle, getTitleLine, getTotalMainWidth, getVisibleMainHeight, getWidth, isRunning, open, resetAllParts, resetMainPart, scrollDown, scrollDown, scrollLeft, scrollRight, scrollUp
-
Field Details
-
NO_ROW_SELECTED
protected static final int NO_ROW_SELECTED- See Also:
-
REFRESH_INTERVALS
-
resultDescriptor
-
tableauStyle
protected final org.apache.flink.table.utils.print.TableauStyle tableauStyle -
columnWidths
protected final int[] columnWidths -
refreshInterval
protected int refreshInterval -
previousResults
-
results
-
selectedRow
protected int selectedRow
-
-
Constructor Details
-
CliResultView
public CliResultView(org.jline.terminal.Terminal terminal, ResultDescriptor resultDescriptor, org.apache.flink.table.utils.print.TableauStyle tableauStyle)
-
-
Method Details
-
increaseRefreshInterval
protected void increaseRefreshInterval() -
decreaseRefreshInterval
protected void decreaseRefreshInterval(int minInterval) -
selectRowUp
protected void selectRowUp() -
selectRowDown
protected void selectRowDown() -
openRow
protected void openRow() -
stopRetrieval
protected void stopRetrieval(boolean cleanUpQuery) -
isRetrieving
protected boolean isRetrieving() -
refresh
protected abstract void refresh() -
getRow
-
init
protected void init()Description copied from class:CliViewStarts threads if necessary. -
computeMainLines
-
cleanUp
protected void cleanUp()
-