public abstract class CliResultView<O extends Enum<O>> extends CliView<O,Void>
Modifier and Type | Field and Description |
---|---|
protected int[] |
columnWidths |
protected static int |
NO_ROW_SELECTED |
protected List<String[]> |
previousResults |
protected static List<Tuple2<String,Long>> |
REFRESH_INTERVALS |
protected int |
refreshInterval |
protected ResultDescriptor |
resultDescriptor |
protected List<String[]> |
results |
protected int |
selectedRow |
protected TableauStyle |
tableauStyle |
Constructor and Description |
---|
CliResultView(CliClient client,
ResultDescriptor resultDescriptor,
TableauStyle tableauStyle) |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanUp() |
protected List<org.jline.utils.AttributedString> |
computeMainLines() |
protected void |
decreaseRefreshInterval(int minInterval) |
protected abstract String[] |
getRow(String[] resultRow) |
protected void |
increaseRefreshInterval() |
protected void |
init()
Starts threads if necessary.
|
protected boolean |
isRetrieving() |
protected void |
openRow() |
protected abstract void |
refresh() |
protected void |
selectRowDown() |
protected void |
selectRowUp() |
protected void |
stopRetrieval(boolean cleanUpQuery) |
close, close, close, computeFooterLines, computeHeaderLines, computeMainHeaderLines, display, evaluate, getFooterLines, getHeaderLines, getHeight, getKeys, getMainHeaderLines, getMainLines, getResult, getTitle, getTitleLine, getTotalMainWidth, getVisibleMainHeight, getWidth, isRunning, open, resetAllParts, resetMainPart, scrollDown, scrollDown, scrollLeft, scrollRight, scrollUp
protected static final int NO_ROW_SELECTED
protected final ResultDescriptor resultDescriptor
protected final TableauStyle tableauStyle
protected final int[] columnWidths
protected int refreshInterval
protected int selectedRow
public CliResultView(CliClient client, ResultDescriptor resultDescriptor, TableauStyle tableauStyle)
protected void increaseRefreshInterval()
protected void decreaseRefreshInterval(int minInterval)
protected void selectRowUp()
protected void selectRowDown()
protected void openRow()
protected void stopRetrieval(boolean cleanUpQuery)
protected boolean isRetrieving()
protected abstract void refresh()
protected void init()
CliView
protected List<org.jline.utils.AttributedString> computeMainLines()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.