public class AndQuery extends Object implements QueryNode
Modifier and Type | Class and Description |
---|---|
static class |
AndQuery.AndQueryExecutor |
Constructor and Description |
---|
AndQuery(QueryNode... nodes)
Constructs a new short-AND operator from an array of sub-nodes.
|
Modifier and Type | Method and Description |
---|---|
QueryNode[] |
getNodes()
Gets the sub-queries for this AND query.
|
QueryExecutor |
getQueryExecutor(QueryEngine engine)
Obtains a
QueryExecutor appropriate for this query node. |
String |
toString() |
public AndQuery(QueryNode... nodes)
nodes
- the sub-queries for this operator.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.public QueryNode[] getNodes()
Copyright © 2021 GATE. All rights reserved.