public class OrQuery extends Object implements QueryNode
Modifier and Type | Class and Description |
---|---|
static class |
OrQuery.OrQueryExecutor
Executes a disjunction of other queries.
|
Constructor and Description |
---|
OrQuery(QueryNode... nodes)
Creates anew OR Query from an array of sub-queries.
|
Modifier and Type | Method and Description |
---|---|
QueryNode[] |
getNodes() |
QueryExecutor |
getQueryExecutor(QueryEngine engine)
Obtains a
QueryExecutor appropriate for this query node. |
String |
toString() |
protected QueryNode[] nodes
public OrQuery(QueryNode... nodes)
nodes
- the nodes contained by this query.public QueryNode[] getNodes()
public QueryExecutor getQueryExecutor(QueryEngine engine) throws IOException
QueryNode
QueryExecutor
appropriate for this query node. Each call
to this method will return a new QueryExecutor
.getQueryExecutor
in interface QueryNode
QueryExecutor
.IOException
- if the index files cannot be accessed.Copyright © 2021 GATE. All rights reserved.