public class RepeatsQuery extends Object implements QueryNode
Modifier and Type | Class and Description |
---|---|
static class |
RepeatsQuery.RepeatsQueryExecutor
A
QueryExecutor for repeats queries. |
Modifier and Type | Field and Description |
---|---|
protected int |
max
The maximum number of repeats permitted.
|
protected int |
min
The minimum number of repeats required.
|
protected QueryNode |
wrappedQuery
The wrapped query.
|
Constructor and Description |
---|
RepeatsQuery(QueryNode query,
int min,
int max)
Creates a new repeats query.
|
Modifier and Type | Method and Description |
---|---|
int |
getMax() |
int |
getMin() |
QueryExecutor |
getQueryExecutor(QueryEngine engine)
Obtains a
QueryExecutor appropriate for this query node. |
QueryNode |
getWrappedQuery() |
String |
toString() |
protected int min
protected int max
protected QueryNode wrappedQuery
public RepeatsQuery(QueryNode query, int min, int max)
query
- the query to be wrapped.min
- the minimum number of repeats required. This value needs to be
greater than 0.max
- the maximum number of repeats permitted. This value needs to be
greater or equal to the value given for min
.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 int getMin()
public int getMax()
public QueryNode getWrappedQuery()
Copyright © 2021 GATE. All rights reserved.