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
public abstract class CliResultView<O extends Enum<O>> extends CliView<O,Void>
Abstract CLI view for showing results (either as changelog or table).
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]columnWidthsprotected static intNO_ROW_SELECTEDprotected List<String[]>previousResultsprotected static List<org.apache.flink.api.java.tuple.Tuple2<String,Long>>REFRESH_INTERVALSprotected intrefreshIntervalprotected ResultDescriptorresultDescriptorprotected List<String[]>resultsprotected intselectedRowprotected org.apache.flink.table.utils.print.TableauStyletableauStyle
-
Constructor Summary
Constructors Constructor Description CliResultView(org.jline.terminal.Terminal terminal, ResultDescriptor resultDescriptor, org.apache.flink.table.utils.print.TableauStyle tableauStyle)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcleanUp()protected List<org.jline.utils.AttributedString>computeMainLines()protected voiddecreaseRefreshInterval(int minInterval)protected abstract String[]getRow(String[] resultRow)protected voidincreaseRefreshInterval()protected voidinit()Starts threads if necessary.protected booleanisRetrieving()protected voidopenRow()protected abstract voidrefresh()protected voidselectRowDown()protected voidselectRowUp()protected 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 Detail
-
NO_ROW_SELECTED
protected static final int NO_ROW_SELECTED
- See Also:
- Constant Field Values
-
REFRESH_INTERVALS
protected static final List<org.apache.flink.api.java.tuple.Tuple2<String,Long>> REFRESH_INTERVALS
-
resultDescriptor
protected final ResultDescriptor resultDescriptor
-
tableauStyle
protected final org.apache.flink.table.utils.print.TableauStyle tableauStyle
-
columnWidths
protected final int[] columnWidths
-
refreshInterval
protected int refreshInterval
-
selectedRow
protected int selectedRow
-
-
Constructor Detail
-
CliResultView
public CliResultView(org.jline.terminal.Terminal terminal, ResultDescriptor resultDescriptor, org.apache.flink.table.utils.print.TableauStyle tableauStyle)
-
-
Method Detail
-
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()
-
init
protected void init()
Description copied from class:CliViewStarts threads if necessary.
-
computeMainLines
protected List<org.jline.utils.AttributedString> computeMainLines()
-
-