org.apache.solr.search
Class Grouping.CommandQuery
java.lang.Object
org.apache.solr.search.Grouping.Command
org.apache.solr.search.Grouping.CommandQuery
- Enclosing class:
- Grouping
public class Grouping.CommandQuery
- extends Grouping.Command
A group command for grouping on a query.
Method Summary |
protected Collector |
createFirstPassCollector()
Returns one or more Collector instances that are needed to perform the first pass search. |
protected void |
finish()
Performs any necessary post actions to prepare the response. |
int |
getMatches()
Returns the number of matches for this Command . |
protected void |
prepare()
Prepare this Command for execution. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
query
public Query query
Grouping.CommandQuery
public Grouping.CommandQuery()
prepare
protected void prepare()
throws IOException
- Prepare this
Command
for execution.
- Specified by:
prepare
in class Grouping.Command
- Throws:
IOException
- If I/O related errors occur
createFirstPassCollector
protected Collector createFirstPassCollector()
throws IOException
- Returns one or more
Collector
instances that are needed to perform the first pass search.
If multiple Collectors are returned then these wrapped in a MultiCollector
.
- Specified by:
createFirstPassCollector
in class Grouping.Command
- Returns:
- one or more
Collector
instances that are need to perform the first pass search
- Throws:
IOException
- If I/O related errors occur
finish
protected void finish()
throws IOException
- Performs any necessary post actions to prepare the response.
- Specified by:
finish
in class Grouping.Command
- Throws:
IOException
- If I/O related errors occur
getMatches
public int getMatches()
- Returns the number of matches for this
Command
.
- Specified by:
getMatches
in class Grouping.Command
- Returns:
- the number of matches for this
Command
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.