Package org.sindice.siren.qparser.keyword.nodes

Examples of org.sindice.siren.qparser.keyword.nodes.NodeNumericQueryNode


          throw new QueryNodeParseException(new MessageImpl(QueryParserMessages.COULD_NOT_PARSE_NUMBER,
            upperText, parser.getNumericType() + " parser"), e);
        }

        final CharSequence field = termRangeNode.getField();
        final NodeNumericQueryNode lowerNode = new NodeNumericQueryNode(field, lowerNumber);
        final NodeNumericQueryNode upperNode = new NodeNumericQueryNode(field, upperNumber);

        final boolean lowerInclusive = termRangeNode.isLowerInclusive();
        final boolean upperInclusive = termRangeNode.isUpperInclusive();

        return new NodeNumericRangeQueryNode(lowerNode, upperNode, lowerInclusive, upperInclusive, na);
View Full Code Here


        } catch (final Exception e) {
          throw new QueryNodeParseException(new MessageImpl(QueryParserMessages.COULD_NOT_PARSE_NUMBER, text), e);
        }

        final CharSequence field = fieldNode.getField();
        final NodeNumericQueryNode lowerNode = new NodeNumericQueryNode(field, number);
        final NodeNumericQueryNode upperNode = new NodeNumericQueryNode(field, number);

        return new NodeNumericRangeQueryNode(lowerNode, upperNode, true, true, na);
      }
    }
    return node;
View Full Code Here

TOP

Related Classes of org.sindice.siren.qparser.keyword.nodes.NodeNumericQueryNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.