public class ConsoleProgressBar extends Object implements Logging
sc.statusTracker
periodically, the progress bar will be showed
up after the stage has ran at least 500ms. If multiple stages run in the same time, the status
of them will be combined together, showed in one line.Constructor and Description |
---|
ConsoleProgressBar(SparkContext sc) |
Modifier and Type | Method and Description |
---|---|
char |
CR() |
void |
finishAll()
Mark all the stages as finished, clear the progress bar if showed, then the progress will not
interweave with output of jobs.
|
long |
FIRST_DELAY() |
long |
lastFinishTime() |
String |
lastProgressBar() |
long |
lastUpdateTime() |
int |
TerminalWidth() |
long |
UPDATE_PERIOD() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public ConsoleProgressBar(SparkContext sc)
public char CR()
public long UPDATE_PERIOD()
public long FIRST_DELAY()
public int TerminalWidth()
public long lastFinishTime()
public long lastUpdateTime()
public String lastProgressBar()
public void finishAll()