public class StandardQueryResult extends java.lang.Object implements QueryResult, ProgressiveResult
| Modifier and Type | Field and Description |
|---|---|
static int |
TTL |
| Constructor and Description |
|---|
StandardQueryResult(Query query,
int numSteps) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitCompletion(long time,
java.util.concurrent.TimeUnit unit) |
java.lang.String |
getError() |
java.util.Date |
getExpiration() |
java.util.List<ProvenanceEventRecord> |
getMatchingEvents() |
int |
getPercentComplete() |
long |
getQueryTime() |
long |
getTotalHitCount() |
boolean |
isFinished() |
void |
setError(java.lang.String error) |
void |
update(java.util.Collection<ProvenanceEventRecord> newEvents,
long totalHits) |
public StandardQueryResult(Query query, int numSteps)
public java.util.List<ProvenanceEventRecord> getMatchingEvents()
getMatchingEvents in interface QueryResultpublic long getTotalHitCount()
getTotalHitCount in interface ProgressiveResultgetTotalHitCount in interface QueryResultpublic long getQueryTime()
getQueryTime in interface QueryResultpublic java.util.Date getExpiration()
getExpiration in interface QueryResultpublic java.lang.String getError()
getError in interface QueryResultnullpublic int getPercentComplete()
getPercentComplete in interface QueryResultpublic boolean isFinished()
isFinished in interface ProgressiveResultisFinished in interface QueryResultpublic void setError(java.lang.String error)
setError in interface ProgressiveResultpublic void update(java.util.Collection<ProvenanceEventRecord> newEvents, long totalHits)
update in interface ProgressiveResultpublic boolean awaitCompletion(long time,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
awaitCompletion in interface QueryResultjava.lang.InterruptedException