public abstract class CliResultView<O extends Enum<O>> extends CliView<O,Void>
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_COLUMN_WIDTH |
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 |
Constructor and Description |
---|
CliResultView(CliClient client,
ResultDescriptor resultDescriptor) |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanUp() |
protected abstract int |
computeColumnWidth(int idx) |
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 MAX_COLUMN_WIDTH
protected static final int NO_ROW_SELECTED
protected final ResultDescriptor resultDescriptor
protected int refreshInterval
protected int selectedRow
public CliResultView(CliClient client, ResultDescriptor resultDescriptor)
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 abstract int computeColumnWidth(int idx)
protected void init()
CliView
protected List<org.jline.utils.AttributedString> computeMainLines()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.