public class ConstQuery extends Object implements QueryNode
Modifier and Type | Class and Description |
---|---|
static class |
ConstQuery.ConstQueryExecutor
Executor implementation for
ConstQuery . |
Constructor and Description |
---|
ConstQuery(long[] documentIds)
Creates a new ConstQuery query.
|
Modifier and Type | Method and Description |
---|---|
long[] |
getDocumentIds() |
QueryExecutor |
getQueryExecutor(QueryEngine engine)
Obtains a
QueryExecutor appropriate for this query node. |
public ConstQuery(long[] documentIds)
documentIds
- the document IDs (in ascending order) that should be
returned when this query is executed.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 long[] getDocumentIds()
Copyright © 2021 GATE. All rights reserved.