ProgressListener.ProgressUpdatepublic static class ProgressListener.SimpleProgressUpdate extends java.lang.Object implements ProgressListener.ProgressUpdate
| Constructor | Description |
|---|---|
SimpleProgressUpdate(QueryBatch queryBatch,
long startTime, long totalResults,
double timeSoFarInSeconds) |
Constructs a simple implementation of the
ProgressUpdate interface
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getProgressAsString() |
Gets a loggable string with the information for
the progress update.
|
QueryBatch |
getQueryBatch() |
Gets the query batcher producing the
results.
|
long |
getStartTime() |
Gets the time when the processing started.
|
double |
getTimeSoFarInSeconds() |
Gets the time taken by processing up to this
update.
|
long |
getTotalResults() |
Gets the total number of results in this
update.
|
boolean |
isComplete() |
Whether the update is complete.
|
public SimpleProgressUpdate(QueryBatch queryBatch, long startTime, long totalResults, double timeSoFarInSeconds)
queryBatch - the query batcher producing the
resultsstartTime - the time when the processing
startedtotalResults - the number of results in this
updatetimeSoFarInSeconds - the time taken by processing
up to this updatepublic java.lang.String getProgressAsString()
ProgressListener.ProgressUpdate
getProgressAsString in
interface ProgressListener.ProgressUpdatepublic boolean isComplete()
ProgressListener.ProgressUpdate
isComplete in interface ProgressListener.ProgressUpdatepublic QueryBatch getQueryBatch()
ProgressListener.ProgressUpdate
getQueryBatch in interface ProgressListener.ProgressUpdatepublic long getStartTime()
ProgressListener.ProgressUpdate
getStartTime in interface ProgressListener.ProgressUpdatepublic long getTotalResults()
ProgressListener.ProgressUpdate
getTotalResults in interface ProgressListener.ProgressUpdatepublic double getTimeSoFarInSeconds()
ProgressListener.ProgressUpdate
getTimeSoFarInSeconds in
interface ProgressListener.ProgressUpdateCopyright © 2013-2019 MarkLogic Corporation.