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 Details

    • NO_ROW_SELECTED

      protected static final int NO_ROW_SELECTED
      See Also:
    • 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
    • previousResults

      protected List<String[]> previousResults
    • results

      protected List<String[]> 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

      protected abstract String[] getRow(String[] resultRow)
    • init

      protected void init()
      Description copied from class: CliView
      Starts threads if necessary.
      Specified by:
      init in class CliView<O extends Enum<O>,Void>
    • computeMainLines

      protected List<org.jline.utils.AttributedString> computeMainLines()
      Specified by:
      computeMainLines in class CliView<O extends Enum<O>,Void>
    • cleanUp

      protected void cleanUp()
      Specified by:
      cleanUp in class CliView<O extends Enum<O>,Void>