Class SearchGroupsFieldCommand
java.lang.Object
org.apache.solr.search.grouping.distributed.command.SearchGroupsFieldCommand
- All Implemented Interfaces:
Command<SearchGroupsFieldCommandResult>
public class SearchGroupsFieldCommand
extends Object
implements Command<SearchGroupsFieldCommandResult>
Creates all the collectors needed for the first phase and how to handle the results.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.lucene.search.Collector> create()Returns a list ofCollectorinstances to be included in the search based on the .org.apache.lucene.search.SortgetKey()org.apache.lucene.search.Sortresult()Returns the results that the collectors created byCommand.create()contain after a search has been executed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.search.grouping.Command
postCollect
-
Method Details
-
create
Description copied from interface:CommandReturns a list ofCollectorinstances to be included in the search based on the .- Specified by:
createin interfaceCommand<SearchGroupsFieldCommandResult>- Returns:
- a list of
Collectorinstances - Throws:
IOException- If I/O related errors occur
-
result
Description copied from interface:CommandReturns the results that the collectors created byCommand.create()contain after a search has been executed.- Specified by:
resultin interfaceCommand<SearchGroupsFieldCommandResult>- Returns:
- The results of the collectors
- Throws:
IOException
-
getWithinGroupSort
public org.apache.lucene.search.Sort getWithinGroupSort()- Specified by:
getWithinGroupSortin interfaceCommand<SearchGroupsFieldCommandResult>- Returns:
- The sort inside a group
-
getGroupSort
public org.apache.lucene.search.Sort getGroupSort()- Specified by:
getGroupSortin interfaceCommand<SearchGroupsFieldCommandResult>- Returns:
- The group sort (overall sort)
-
getKey
- Specified by:
getKeyin interfaceCommand<SearchGroupsFieldCommandResult>- Returns:
- The key of this command to uniquely identify itself
-