Package org.apache.jackrabbit.oak.plugins.index.property.OrderedIndex

Examples of org.apache.jackrabbit.oak.plugins.index.property.OrderedIndex.OrderDirection


    @Test
    public void queryGreaterEqualThan() throws Exception {
        initWithProperProvider();
        setTraversalEnabled(false);

        final OrderDirection direction = OrderDirection.ASC;
        final String query = "SELECT * FROM [nt:base] AS n WHERE n.%s >= $%s";

        // index automatically created by the framework:
        // {@code createTestIndexNode()}

View Full Code Here


     * @throws Exception
     */
    @Test
    public void queryLessThan() throws Exception {
        setTraversalEnabled(false);
        final OrderDirection direction = OrderDirection.DESC;
        final String query = "SELECT * FROM [nt:base] AS n WHERE n.%s < $%s";

        // index automatically created by the framework:
        // {@code createTestIndexNode()}

View Full Code Here

     * @throws Exception
     */
    @Test
    public void queryLessEqualThan() throws Exception {
        setTraversalEnabled(false);
        final OrderDirection direction = OrderDirection.DESC;
        final String query = "SELECT * FROM [nt:base] AS n WHERE n.%s <= $%s";

        // index automatically created by the framework:
        // {@code createTestIndexNode()}

View Full Code Here

    @Test
    public void queryGreaterThenWithCast() throws CommitFailedException, ParseException {

        setTraversalEnabled(false);

        final OrderDirection direction = OrderDirection.ASC;
        final String query = "SELECT * FROM [nt:base] WHERE " + ORDERED_PROPERTY
                             + "> cast('%s' as date)";

        // index automatically created by the framework:
        // {@code createTestIndexNode()}
View Full Code Here

   
    @Test
    public void queryBetweenNoIncludes() throws Exception {
        setTraversalEnabled(false);

        final OrderDirection direction = OrderDirection.ASC;
        final String query = "SELECT * FROM [nt:base] WHERE " + ORDERED_PROPERTY + "> $start AND "
                             + ORDERED_PROPERTY + " < $end";

        // index automatically created by the framework:
        // {@code createTestIndexNode()}
View Full Code Here

   
    @Test
    public void queryBetweenIncludeBoth() throws Exception {
        setTraversalEnabled(false);

        final OrderDirection direction = OrderDirection.ASC;
        final String query = "SELECT * FROM [nt:base] WHERE " + ORDERED_PROPERTY + ">= $start AND "
                             + ORDERED_PROPERTY + " <= $end";

        // index automatically created by the framework:
        // {@code createTestIndexNode()}
View Full Code Here

    @Test
    public void queryBetweenIncludeHigher() throws Exception {
        setTraversalEnabled(false);

        final OrderDirection direction = OrderDirection.ASC;
        final String query = "SELECT * FROM [nt:base] WHERE " + ORDERED_PROPERTY + "> $start AND "
                             + ORDERED_PROPERTY + " <= $end";

        // index automatically created by the framework:
        // {@code createTestIndexNode()}
View Full Code Here

   
    @Test
    public void queryBetweenIncludeLower() throws Exception {
        setTraversalEnabled(false);

        final OrderDirection direction = OrderDirection.ASC;
        final String query = "SELECT * FROM [nt:base] WHERE " + ORDERED_PROPERTY + ">= $start AND "
                             + ORDERED_PROPERTY + " < $end";

        // index automatically created by the framework:
        // {@code createTestIndexNode()}
View Full Code Here

     */
    @Test
    public void queryGreaterThan() throws CommitFailedException, ParseException {
        setTraversalEnabled(false);

        final OrderDirection direction = OrderDirection.ASC;
        final String query = "SELECT * FROM [nt:base] AS n WHERE n.%s > $%s";

        // index automatically created by the framework:
        // {@code createTestIndexNode()}

View Full Code Here

     */
    @Test
    public void queryGreaterEqualThan() throws CommitFailedException, ParseException {
        setTraversalEnabled(false);

        final OrderDirection direction = OrderDirection.ASC;
        final String query = "SELECT * FROM [nt:base] AS n WHERE n.%s >= $%s";

        // index automatically created by the framework:
        // {@code createTestIndexNode()}

View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.index.property.OrderedIndex.OrderDirection

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.