org.apache.solr.search.grouping.distributed.command
Class TopGroupsFieldCommand
java.lang.Object
org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand
- All Implemented Interfaces:
- Command<org.apache.lucene.search.grouping.TopGroups<String>>
public class TopGroupsFieldCommand
- extends Object
- implements Command<org.apache.lucene.search.grouping.TopGroups<String>>
Method Summary |
List<org.apache.lucene.search.Collector> |
create()
Returns a list of Collector instances to be
included in the search based on the . |
org.apache.lucene.search.Sort |
getGroupSort()
|
String |
getKey()
|
org.apache.lucene.search.Sort |
getSortWithinGroup()
|
org.apache.lucene.search.grouping.TopGroups<String> |
result()
Returns the results that the collectors created
by Command.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, wait |
create
public List<org.apache.lucene.search.Collector> create()
throws IOException
- Description copied from interface:
Command
- Returns a list of
Collector
instances to be
included in the search based on the .
- Specified by:
create
in interface Command<org.apache.lucene.search.grouping.TopGroups<String>>
- Returns:
- a list of
Collector
instances
- Throws:
IOException
- If I/O related errors occur
result
public org.apache.lucene.search.grouping.TopGroups<String> result()
- Description copied from interface:
Command
- Returns the results that the collectors created
by
Command.create()
contain after a search has been executed.
- Specified by:
result
in interface Command<org.apache.lucene.search.grouping.TopGroups<String>>
- Returns:
- The results of the collectors
getKey
public String getKey()
- Specified by:
getKey
in interface Command<org.apache.lucene.search.grouping.TopGroups<String>>
- Returns:
- The key of this command to uniquely identify itself
getGroupSort
public org.apache.lucene.search.Sort getGroupSort()
- Specified by:
getGroupSort
in interface Command<org.apache.lucene.search.grouping.TopGroups<String>>
- Returns:
- The group sort (overall sort)
getSortWithinGroup
public org.apache.lucene.search.Sort getSortWithinGroup()
- Specified by:
getSortWithinGroup
in interface Command<org.apache.lucene.search.grouping.TopGroups<String>>
- Returns:
- The sort inside a group
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.