public class GapQuery extends Object implements QueryNode
Modifier and Type | Class and Description |
---|---|
static class |
GapQuery.GapQueryExecutor |
Modifier and Type | Field and Description |
---|---|
protected int |
gap
The length of the gap to be added at the end of all results.
|
protected QueryNode |
wrappedQuery
The query node wrapped by this
GapQuery . |
Constructor and Description |
---|
GapQuery(QueryNode wrappedQuery,
int gap)
Constructs a new
GapQuery |
Modifier and Type | Method and Description |
---|---|
int |
getGap()
Gets the gap length.
|
QueryExecutor |
getQueryExecutor(QueryEngine engine)
Obtains a
QueryExecutor appropriate for this query node. |
QueryNode |
getWrappedQuery()
Gets the wrapped query.
|
public int getGap()
public QueryNode getWrappedQuery()
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.