Class DummyQueryNodeBuilder
- java.lang.Object
-
- org.apache.lucene.queryparser.flexible.standard.builders.DummyQueryNodeBuilder
-
- All Implemented Interfaces:
QueryBuilder
,StandardQueryBuilder
public class DummyQueryNodeBuilder extends java.lang.Object implements StandardQueryBuilder
This builder does nothing. Commonly used forQueryNode
objects that are built by its parent's builder.- See Also:
StandardQueryBuilder
,QueryTreeBuilder
-
-
Constructor Summary
Constructors Constructor Description DummyQueryNodeBuilder()
Constructs aDummyQueryNodeBuilder
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TermQuery
build(QueryNode queryNode)
Always returnnull
.
-
-
-
Constructor Detail
-
DummyQueryNodeBuilder
public DummyQueryNodeBuilder()
Constructs aDummyQueryNodeBuilder
object.
-
-
Method Detail
-
build
public TermQuery build(QueryNode queryNode) throws QueryNodeException
Always returnnull
. returnnull
- Specified by:
build
in interfaceQueryBuilder
- Specified by:
build
in interfaceStandardQueryBuilder
- Parameters:
queryNode
- the query tree root node- Returns:
- some object generated from the query tree
- Throws:
QueryNodeException
-
-