public class QueryResult extends Object
Constructor and Description |
---|
QueryResult()
Initializes a new instance of the
QueryResult class. |
Modifier and Type | Method and Description |
---|---|
QueryResult |
createSnapshot()
Creates a snapshot of the query results
|
void |
ensureSnapshot()
Ensures that the query results can be used in snapshots
|
long |
getDurationMiliseconds()
The duration of actually executing the query server side
-1 is returned in case the query results retrieved from cache
|
Map<String,Map<String,String[]>> |
getHighlightings()
Highlighter results (if requested).
|
Collection<RavenJObject> |
getIncludes()
Gets the document included in the result.
|
Etag |
getIndexEtag()
The last etag indexed by the index.
|
String |
getIndexName()
The index used to answer this query
|
Date |
getIndexTimestamp()
The last time the index was updated.
|
Date |
getLastQueryTime()
The timestamp of the last time the index was queried
|
Etag |
getResultEtag()
The ETag value for this index current state, which include what docs were indexed,
what document were deleted, etc.
|
List<RavenJObject> |
getResults()
Gets the document resulting from this query.
|
long |
getResultSize()
The size of the request which were sent from the server.
|
Map<String,String> |
getScoreExplanations()
Explanations of document scores (if requested).
|
int |
getSkippedResults()
Gets the skipped results
|
Map<String,Double> |
getTimingsInMilliseconds()
Detailed timings for various parts of a query (Lucene search, loading documents, transforming results) - if requested.
|
int |
getTotalResults()
Gets the total results for this query
|
boolean |
isNonAuthoritativeInformation()
Indicates whether any of the documents returned by this query
are non authoritative (modified by uncommitted transaction).
|
boolean |
isStale()
Gets a value indicating whether the index is stale.
|
void |
setDurationMiliseconds(long durationMiliseconds)
The duration of actually executing the query server side
-1 is returned in case the query results retrieved from cache
|
void |
setHighlightings(Map<String,Map<String,String[]>> highlightings)
Highlighter results (if requested).
|
void |
setIncludes(List<RavenJObject> includes)
Sets the document included in the result.
|
void |
setIndexEtag(Etag indexEtag)
The last etag indexed by the index.
|
void |
setIndexName(String indexName)
The index used to answer this query
|
void |
setIndexTimestamp(Date indexTimestamp)
The last time the index was updated.
|
void |
setLastQueryTime(Date lastQueryTime)
The timestamp of the last time the index was queried
|
void |
setNonAuthoritativeInformation(boolean nonAuthoritativeInformation)
Indicates whether any of the documents returned by this query
are non authoritative (modified by uncommitted transaction).
|
void |
setResultEtag(Etag resultEtag)
The ETag value for this index current state, which include what docs were indexed,
what document were deleted, etc.
|
void |
setResults(List<RavenJObject> results)
Sets the document resulting from this query.
|
void |
setResultSize(long resultSize)
The size of the request which were sent from the server.
|
void |
setScoreExplanations(Map<String,String> scoreExplanations)
Explanations of document scores (if requested).
|
void |
setSkippedResults(int skippedResults)
Sets the skipped results
|
void |
setStale(boolean isStale)
Sets a value indicating whether the index is stale.
|
void |
setTimingsInMilliseconds(Map<String,Double> timingsInMilliseconds)
Detailed timings for various parts of a query (Lucene search, loading documents, transforming results) - if requested.
|
void |
setTotalResults(int totalResults)
Sets the total results for this query
|
public QueryResult()
QueryResult
class.public long getResultSize()
public void setResultSize(long resultSize)
resultSize
- public Map<String,Double> getTimingsInMilliseconds()
public void setTimingsInMilliseconds(Map<String,Double> timingsInMilliseconds)
timingsInMilliseconds
- public Map<String,String> getScoreExplanations()
public void setScoreExplanations(Map<String,String> scoreExplanations)
scoreExplanations
- public QueryResult createSnapshot()
public void ensureSnapshot()
public long getDurationMiliseconds()
public Map<String,Map<String,String[]>> getHighlightings()
public Collection<RavenJObject> getIncludes()
public Etag getIndexEtag()
public String getIndexName()
public Date getIndexTimestamp()
public Date getLastQueryTime()
public Etag getResultEtag()
public List<RavenJObject> getResults()
public int getSkippedResults()
public int getTotalResults()
public boolean isNonAuthoritativeInformation()
public boolean isStale()
public void setDurationMiliseconds(long durationMiliseconds)
durationMiliseconds
- public void setHighlightings(Map<String,Map<String,String[]>> highlightings)
highlightings
- public void setIncludes(List<RavenJObject> includes)
includes
- public void setIndexEtag(Etag indexEtag)
indexEtag
- public void setIndexName(String indexName)
indexName
- public void setIndexTimestamp(Date indexTimestamp)
indexTimestamp
- public void setLastQueryTime(Date lastQueryTime)
lastQueryTime
- public void setNonAuthoritativeInformation(boolean nonAuthoritativeInformation)
nonAuthoritativeInformation
- public void setResultEtag(Etag resultEtag)
resultEtag
- public void setResults(List<RavenJObject> results)
results
- public void setSkippedResults(int skippedResults)
skippedResults
- public void setStale(boolean isStale)
isStale
- public void setTotalResults(int totalResults)
totalResults
- Copyright © 2016. All Rights Reserved.