public class Grouping.CommandQuery extends Grouping.Command
Modifier and Type | Field and Description |
---|---|
Query |
query |
docsPerGroup, format, groupOffset, groupSort, key, main, numGroups, offset, totalCount, withinGroupSort
Constructor and Description |
---|
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, populateScoresIfNecessary
public Query query
protected void prepare() throws IOException
Grouping.Command
Command
for execution.prepare
in class Grouping.Command
IOException
- If I/O related errors occurprotected Collector createFirstPassCollector() throws IOException
Grouping.Command
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
Grouping.Command
finish
in class Grouping.Command
IOException
- If I/O related errors occurpublic int getMatches()
Grouping.Command
Command
.getMatches
in class Grouping.Command
Command
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.