/** * Constructs a {@link NodeNumericRangeQueryNode} object using the given * {@link NumericQueryNode} as its bounds and a {@link NumericAnalyzer}. * * @param lower the lower bound * @param upper the upper bound * @param lowerInclusive <code>true</code> if the lower bound is inclusive, otherwise, <code>false</code> * @param upperInclusive <code>true</code> if the upper bound is inclusive, otherwise, <code>false</code> * @param numericAnalyzer the {@link NumericAnalyzer} associated with the upper and lower bounds */ public NodeNumericRangeQueryNode(final NumericQueryNode lower, final NumericQueryNode upper, final boolean lowerInclusive, final boolean upperInclusive, final NumericAnalyzer numericAnalyzer) throws QueryNodeException { if (numericAnalyzer == null) { throw new IllegalArgumentException("numericAnalyzer cannot be null!"); } super.setBounds(lower, upper, lowerInclusive, upperInclusive); this.numericAnalyzer = numericAnalyzer; this.numericType = numericAnalyzer.getNumericParser().getNumericType(); }
/** * Constructs a {@link NodeNumericRangeQueryNode} object using the given * {@link NumericQueryNode} as its bounds and a {@link NumericAnalyzer}. * * @param lower the lower bound * @param upper the upper bound * @param lowerInclusive <code>true</code> if the lower bound is inclusive, otherwise, <code>false</code> * @param upperInclusive <code>true</code> if the upper bound is inclusive, otherwise, <code>false</code> * @param numericAnalyzer the {@link NumericAnalyzer} associated with the upper and lower bounds */ public NodeNumericRangeQueryNode(final NumericQueryNode lower, final NumericQueryNode upper, final boolean lowerInclusive, final boolean upperInclusive, final NumericAnalyzer numericAnalyzer) throws QueryNodeException { if (numericAnalyzer == null) { throw new IllegalArgumentException("numericAnalyzer cannot be null!"); } super.setBounds(lower, upper, lowerInclusive, upperInclusive); this.numericAnalyzer = numericAnalyzer; this.numericType = numericAnalyzer.getNumericParser().getNumericType(); }
super.setBounds(lower, upper, lowerInclusive, upperInclusive); this.numericConfig = numericConfig;
super.setBounds(lower, upper, lowerInclusive, upperInclusive); this.numericConfig = numericConfig;