|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.smila.search.api.helper.ResultAccessor
public class ResultAccessor
Wrapper for a complete search result object. Basically provides method to create access helpers for the single query and result records contained in the search result. Can also create a new query builder based on the effective query object in the search result.
Field Summary | |
---|---|
protected Record |
_result
the search result. |
Constructor Summary | |
---|---|
ResultAccessor(java.lang.String workflowName,
Record result)
create instance. |
Method Summary | |
---|---|
long |
getCount()
get number of hits. |
AnyMap |
getGroups()
get groups (facets). |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Record _result
Constructor Detail |
---|
public ResultAccessor(java.lang.String workflowName, Record result)
workflowName
- name of workflowresult
- the search result.Method Detail |
---|
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 getGroups()
public boolean hasRecords()
public AnySeq getResultRecords()
public int getNumberOfRecords()
public ResultItemAccessor getResultRecord(int index)
index
- position in result list.
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |