public class QueryCommand extends Object implements Command<QueryCommandResult>
| Modifier and Type | Class and Description |
|---|---|
static class |
QueryCommand.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<Collector> |
create()
Returns a list of
Collector instances to be
included in the search based on the . |
Sort |
getGroupSort() |
String |
getKey() |
Sort |
getWithinGroupSort() |
void |
postCollect(IndexSearcher searcher)
Run post-collection steps.
|
QueryCommandResult |
result()
Returns the results that the collectors created
by
Command.create() contain after a search has been executed. |
public List<Collector> create() throws IOException
CommandCollector instances to be
included in the search based on the .create in interface Command<QueryCommandResult>Collector instancesIOException - If I/O related errors occurpublic void postCollect(IndexSearcher searcher) throws IOException
CommandpostCollect in interface Command<QueryCommandResult>IOException - If I/O related errors occurpublic QueryCommandResult result() throws IOException
CommandCommand.create() contain after a search has been executed.result in interface Command<QueryCommandResult>IOExceptionpublic String getKey()
getKey in interface Command<QueryCommandResult>public Sort getGroupSort()
getGroupSort in interface Command<QueryCommandResult>public Sort getWithinGroupSort()
getWithinGroupSort in interface Command<QueryCommandResult>Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.