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 QueryResult
public long getTotalHitCount()
getTotalHitCount
in interface ProgressiveResult
getTotalHitCount
in interface QueryResult
public long getQueryTime()
getQueryTime
in interface QueryResult
public java.util.Date getExpiration()
getExpiration
in interface QueryResult
public java.lang.String getError()
getError
in interface QueryResult
null
public int getPercentComplete()
getPercentComplete
in interface QueryResult
public boolean isFinished()
isFinished
in interface ProgressiveResult
isFinished
in interface QueryResult
public void setError(java.lang.String error)
setError
in interface ProgressiveResult
public void update(java.util.Collection<ProvenanceEventRecord> newEvents, long totalHits)
update
in interface ProgressiveResult
public boolean awaitCompletion(long time, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
awaitCompletion
in interface QueryResult
java.lang.InterruptedException