public class Grouping.CommandQuery extends Grouping.Command
Modifier and Type | Field and Description |
---|---|
Query |
query |
docsPerGroup, format, groupOffset, groupSort, key, main, numGroups, offset, sort, totalCount
Constructor and Description |
---|
Grouping.CommandQuery() |
Modifier and Type | Method and Description |
---|---|
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. |
addDocList, commonResponse, createAllGroupCollector, createSecondPassCollector, createSimpleResponse, getDocList, getNumberOfGroups
public Query query
protected void prepare() throws IOException
Command
for execution.prepare
in class Grouping.Command
IOException
- If I/O related errors occurprotected Collector createFirstPassCollector() throws IOException
Collector
instances that are needed to perform the first pass search.
If multiple Collectors are returned then these wrapped in a MultiCollector
.createFirstPassCollector
in class Grouping.Command
Collector
instances that are need to perform the first pass searchIOException
- If I/O related errors occurprotected void finish() throws IOException
finish
in class Grouping.Command
IOException
- If I/O related errors occurpublic int getMatches()
Command
.getMatches
in class Grouping.Command
Command
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.