Home » lucene-3.0.1-src » org.apache.lucene.queryParser.standard.processors » [javadoc | source]
public class: ParametricRangeQueryNodeProcessor [javadoc | source]

All Implemented Interfaces:

This processor converts ParametricRangeQueryNode objects to RangeQueryNode objects. It reads the lower and upper bounds value from the ParametricRangeQueryNode object and try to parse their values using a DateFormat . If the values cannot be parsed to a date value, it will only create the RangeQueryNode using the non-parsed values.

If a LocaleAttribute is defined in the QueryConfigHandler it will be used to parse the date, otherwise Locale#getDefault() will be used.

If a DateResolutionAttribute is defined and the Resolution is not null it will also be used to parse the date value.

This processor will also try to retrieve a RangeCollatorAttribute from the QueryConfigHandler . If a RangeCollatorAttribute is found and the Collator is not null, it's set on the RangeQueryNode .
 public ParametricRangeQueryNodeProcessor() 
Method from org.apache.lucene.queryParser.standard.processors.ParametricRangeQueryNodeProcessor Summary:
postProcessNode,   preProcessNode,   setChildrenOrder
Methods from org.apache.lucene.queryParser.core.processors.QueryNodeProcessorImpl:
getQueryConfigHandler,   postProcessNode,   preProcessNode,   process,   processChildren,   setChildrenOrder,   setQueryConfigHandler
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.queryParser.standard.processors.ParametricRangeQueryNodeProcessor Detail:
 protected QueryNode postProcessNode(QueryNode node) throws QueryNodeException 
 protected QueryNode preProcessNode(QueryNode node) throws QueryNodeException 
 protected List<QueryNode> setChildrenOrder(List<QueryNode> children) throws QueryNodeException