SMILA (incubation) API documentation

org.eclipse.smila.search.api.internal
Class SearchResultImpl

java.lang.Object
  extended by org.eclipse.smila.search.api.internal.SearchResultImpl
All Implemented Interfaces:
SearchResult

public class SearchResultImpl
extends java.lang.Object
implements SearchResult

standard implementation of search result interface.

Author:
jschumacher

Constructor Summary
SearchResultImpl(java.lang.String workflowName, Record query)
          create instance.
 
Method Summary
 Record getQuery()
          The "effective query" record.
 Record[] getRecords()
          
 java.lang.String getWorkflowName()
          
protected  void setQuery(Record query)
          set effective query record.
protected  void setRecords(Record[] records)
          set result records list.
protected  void setWorkflowName(java.lang.String workflowName)
          set pipeline name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResultImpl

public SearchResultImpl(java.lang.String workflowName,
                        Record query)
create instance.

Parameters:
workflowName - pipeline name
query - effective query (can be null)
Method Detail

getQuery

public Record getQuery()
The "effective query" record. This is the record which was actually used for the index search. This can be an enriched version of the initial query record that went into the search process.

Specified by:
getQuery in interface SearchResult
Returns:
"effective query" record.
See Also:
SearchResult.getQuery()

getRecords

public Record[] getRecords()

Specified by:
getRecords in interface SearchResult
Returns:
result record list.
See Also:
SearchResult.getRecords()

getWorkflowName

public java.lang.String getWorkflowName()

Specified by:
getWorkflowName in interface SearchResult
Returns:
name of the pipeline that produced this result.
See Also:
SearchResult.getWorkflowName()

setWorkflowName

protected void setWorkflowName(java.lang.String workflowName)
set pipeline name.

Parameters:
workflowName - pipeline name.

setQuery

protected void setQuery(Record query)
set effective query record.

Parameters:
query - effective query record

setRecords

protected void setRecords(Record[] records)
set result records list.

Parameters:
records - result records list.

SMILA (incubation) API documentation