org.apache.lucene.queryParser.standard.builders
Class DummyQueryNodeBuilder
java.lang.Object
org.apache.lucene.queryParser.standard.builders.DummyQueryNodeBuilder
- All Implemented Interfaces:
- QueryBuilder, StandardQueryBuilder
public class DummyQueryNodeBuilder
- extends Object
- implements StandardQueryBuilder
This builder does nothing. Commonly used for QueryNode
objects that
are built by its parent's builder.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyQueryNodeBuilder
public DummyQueryNodeBuilder()
- Constructs a
DummyQueryNodeBuilder
object.
build
public TermQuery build(QueryNode queryNode)
throws QueryNodeException
- Always return
null
.
return null
- Specified by:
build
in interface QueryBuilder
- Specified by:
build
in interface StandardQueryBuilder
- Parameters:
queryNode
- the query tree root node
- Returns:
- some object generated from the query tree
- Throws:
QueryNodeException