public static class ProgressListener.SimpleProgressUpdate extends java.lang.Object implements ProgressListener.ProgressUpdate
Constructor and Description |
---|
SimpleProgressUpdate(QueryBatch queryBatch,
long startTime,
long totalResults,
double timeSoFarInSeconds)
Constructs a simple implementation of the ProgressUpdate interface
|
Modifier and Type | Method and 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.ProgressUpdate
public boolean isComplete()
ProgressListener.ProgressUpdate
isComplete
in interface ProgressListener.ProgressUpdate
public QueryBatch getQueryBatch()
ProgressListener.ProgressUpdate
getQueryBatch
in interface ProgressListener.ProgressUpdate
public long getStartTime()
ProgressListener.ProgressUpdate
getStartTime
in interface ProgressListener.ProgressUpdate
public long getTotalResults()
ProgressListener.ProgressUpdate
getTotalResults
in interface ProgressListener.ProgressUpdate
public double getTimeSoFarInSeconds()
ProgressListener.ProgressUpdate
getTimeSoFarInSeconds
in interface ProgressListener.ProgressUpdate
Copyright © 2013-2021 MarkLogic Corporation.