Class QueryCommand
- java.lang.Object
-
- org.apache.solr.search.grouping.distributed.command.QueryCommand
-
- All Implemented Interfaces:
Command<QueryCommandResult>
public class QueryCommand extends Object implements Command<QueryCommandResult>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQueryCommand.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.apache.lucene.search.Collector>create()Returns a list ofCollectorinstances to be included in the search based on the .org.apache.lucene.search.SortgetGroupSort()StringgetKey()org.apache.lucene.search.SortgetWithinGroupSort()voidpostCollect(org.apache.lucene.search.IndexSearcher searcher)Run post-collection steps.QueryCommandResultresult()Returns the results that the collectors created byCommand.create()contain after a search has been executed.
-
-
-
Method Detail
-
create
public List<org.apache.lucene.search.Collector> create() throws IOException
Description copied from interface:CommandReturns a list ofCollectorinstances to be included in the search based on the .- Specified by:
createin interfaceCommand<QueryCommandResult>- Returns:
- a list of
Collectorinstances - Throws:
IOException- If I/O related errors occur
-
postCollect
public void postCollect(org.apache.lucene.search.IndexSearcher searcher) throws IOExceptionDescription copied from interface:CommandRun post-collection steps.- Specified by:
postCollectin interfaceCommand<QueryCommandResult>- Throws:
IOException- If I/O related errors occur
-
result
public QueryCommandResult result() throws IOException
Description copied from interface:CommandReturns the results that the collectors created byCommand.create()contain after a search has been executed.- Specified by:
resultin interfaceCommand<QueryCommandResult>- Returns:
- The results of the collectors
- Throws:
IOException
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceCommand<QueryCommandResult>- Returns:
- The key of this command to uniquely identify itself
-
getGroupSort
public org.apache.lucene.search.Sort getGroupSort()
- Specified by:
getGroupSortin interfaceCommand<QueryCommandResult>- Returns:
- The group sort (overall sort)
-
getWithinGroupSort
public org.apache.lucene.search.Sort getWithinGroupSort()
- Specified by:
getWithinGroupSortin interfaceCommand<QueryCommandResult>- Returns:
- The sort inside a group
-
-