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.ProgressUpdategetProgressAsString in interface ProgressListener.ProgressUpdatepublic boolean isComplete()
ProgressListener.ProgressUpdateisComplete in interface ProgressListener.ProgressUpdatepublic QueryBatch getQueryBatch()
ProgressListener.ProgressUpdategetQueryBatch in interface ProgressListener.ProgressUpdatepublic long getStartTime()
ProgressListener.ProgressUpdategetStartTime in interface ProgressListener.ProgressUpdatepublic long getTotalResults()
ProgressListener.ProgressUpdategetTotalResults in interface ProgressListener.ProgressUpdatepublic double getTimeSoFarInSeconds()
ProgressListener.ProgressUpdategetTimeSoFarInSeconds in interface ProgressListener.ProgressUpdateCopyright © 2013-2019 MarkLogic Corporation.