Class StandardQueryTreeBuilder
- java.lang.Object
-
- org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder
-
- org.apache.lucene.queryparser.flexible.standard.builders.StandardQueryTreeBuilder
-
- All Implemented Interfaces:
QueryBuilder
,StandardQueryBuilder
public class StandardQueryTreeBuilder extends QueryTreeBuilder implements StandardQueryBuilder
This query tree builder only defines the necessary map to build aQuery
tree object. It should be used to generate aQuery
tree object from a query node tree processed by aStandardQueryNodeProcessorPipeline
.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder
QUERY_TREE_BUILDER_TAGID
-
-
Constructor Summary
Constructors Constructor Description StandardQueryTreeBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Query
build(QueryNode queryNode)
Builds some kind of object from a query tree.-
Methods inherited from class org.apache.lucene.queryparser.flexible.core.builders.QueryTreeBuilder
setBuilder, setBuilder
-
-
-
-
Method Detail
-
build
public Query build(QueryNode queryNode) throws QueryNodeException
Description copied from class:QueryTreeBuilder
Builds some kind of object from a query tree. Each node in the query tree is built using an specific builder associated to it.- Specified by:
build
in interfaceQueryBuilder
- Specified by:
build
in interfaceStandardQueryBuilder
- Overrides:
build
in classQueryTreeBuilder
- Parameters:
queryNode
- the query tree root node- Returns:
- the built object
- Throws:
QueryNodeException
- if some node builder throws aQueryNodeException
or if there is a node which had no builder associated to it
-
-