public class ResultAccessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Record |
_result
the search result.
|
Constructor and Description |
---|
ResultAccessor(java.lang.String workflowName,
Record result)
create instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getCount()
get number of hits, i.e. those that match the query of which only a subset is returned.
|
AnyMap |
getFacets()
get facets (facets).
|
AnyMap |
getGroups() |
long |
getIndexSize()
get size of search index.
|
int |
getNumberOfRecords() |
Any |
getQuery() |
Record |
getResult()
access original result.
|
ResultItemAccessor |
getResultRecord(int index)
create a wrapper for the n'th result record.
|
AnySeq |
getResultRecords() |
long |
getRuntime()
get runtime duration of search.
|
java.lang.String |
getWorkflowName() |
boolean |
hasQuery() |
boolean |
hasRecords() |
protected final Record _result
public ResultAccessor(java.lang.String workflowName, Record result)
workflowName
- name of workflowresult
- the search result.public Record getResult()
public java.lang.String getWorkflowName()
public boolean hasQuery()
public Any getQuery()
public long getCount()
public long getIndexSize()
public long getRuntime()
public AnyMap getFacets()
public boolean hasRecords()
public AnySeq getResultRecords()
public int getNumberOfRecords()
public ResultItemAccessor getResultRecord(int index)
index
- position in result list.