public class ConstTermsQuery extends Object implements TermsQuery
CompoundTermsQuery
s.Modifier and Type | Field and Description |
---|---|
protected TermsResultSet |
trs
The
TermsResultSet to be returned upon "execution". |
Constructor and Description |
---|
ConstTermsQuery(TermsResultSet trs)
Constructs a new instance of
ConstTermsQuery . |
Modifier and Type | Method and Description |
---|---|
TermsResultSet |
execute(QueryEngine engine)
Runs the term query (in the calling thread) and returns the matched terms.
|
protected TermsResultSet trs
TermsResultSet
to be returned upon "execution".public ConstTermsQuery(TermsResultSet trs)
ConstTermsQuery
.trs
- the terms result set to be returned by the constant terms query.public TermsResultSet execute(QueryEngine engine) throws IOException
TermsQuery
execute
in interface TermsQuery
engine
- the QueryEngine
used to execute the search.TermsResultSet
containing the matched terms.IOException
Copyright © 2021 GATE. All rights reserved.