Package org.apache.jackrabbit.oak.plugins.index.property.strategy.OrderedContentMirrorStoreStrategy

Examples of org.apache.jackrabbit.oak.plugins.index.property.strategy.OrderedContentMirrorStoreStrategy.PredicateLessThan


        Predicate<String> predicate;
        String searchfor;
        String entry;
       
        searchfor = "b";
        predicate = new PredicateLessThan(searchfor, true);
        entry = "a";
        assertTrue(predicate.apply(entry));

        searchfor = "a";
        predicate = new PredicateLessThan(searchfor, true);
        entry = "b";
        assertFalse(predicate.apply(entry));

        searchfor = "a";
        predicate = new PredicateLessThan(searchfor, true);
        entry = null;
        assertFalse(predicate.apply(entry));
       
        // equality matching
        searchfor = "2012-11-25T21:00:45.967-07:00";
        entry = "2012-11-25T21%3A00%3A45.967-07%3A00";
        predicate = new PredicateLessThan(searchfor, true);
        assertTrue("this should have matched the equality flag", predicate.apply(entry));
    }
View Full Code Here


        Predicate<ChildNodeEntry> predicate;
        String searchfor;
        ChildNodeEntry entry;
       
        searchfor = "b";
        predicate = new PredicateLessThan(searchfor, true);
        entry = new OrderedChildNodeEntry("a", EmptyNodeState.EMPTY_NODE);
        assertTrue(predicate.apply(entry));

        searchfor = "a";
        predicate = new PredicateLessThan(searchfor, true);
        entry = new OrderedChildNodeEntry("b", EmptyNodeState.EMPTY_NODE);
        assertFalse(predicate.apply(entry));

        searchfor = "a";
        predicate = new PredicateLessThan(searchfor, true);
        entry = null;
        assertFalse(predicate.apply(entry));
    }
View Full Code Here

        Predicate<ChildNodeEntry> predicate;
        String searchfor;
        ChildNodeEntry entry;
       
        searchfor = "b";
        predicate = new PredicateLessThan(searchfor, true);
        entry = new OrderedChildNodeEntry("a", EmptyNodeState.EMPTY_NODE);
        assertTrue(predicate.apply(entry));

        searchfor = "a";
        predicate = new PredicateLessThan(searchfor, true);
        entry = new OrderedChildNodeEntry("b", EmptyNodeState.EMPTY_NODE);
        assertFalse(predicate.apply(entry));

        searchfor = "a";
        predicate = new PredicateLessThan(searchfor, true);
        entry = null;
        assertFalse(predicate.apply(entry));
    }
View Full Code Here

        Predicate<String> predicate;
        String searchfor;
        String entry;
       
        searchfor = "b";
        predicate = new PredicateLessThan(searchfor, true);
        entry = "a";
        assertTrue(predicate.apply(entry));

        searchfor = "a";
        predicate = new PredicateLessThan(searchfor, true);
        entry = "b";
        assertFalse(predicate.apply(entry));

        searchfor = "a";
        predicate = new PredicateLessThan(searchfor, true);
        entry = null;
        assertFalse(predicate.apply(entry));
       
        // equality matching
        searchfor = "2012-11-25T21:00:45.967-07:00";
        entry = "2012-11-25T21%3A00%3A45.967-07%3A00";
        predicate = new PredicateLessThan(searchfor, true);
        assertTrue("this should have matched the equality flag", predicate.apply(entry));
    }
View Full Code Here

        Predicate<String> predicate;
        String searchfor;
        String entry;
       
        searchfor = "b";
        predicate = new PredicateLessThan(searchfor, true);
        entry = "a";
        assertTrue(predicate.apply(entry));

        searchfor = "a";
        predicate = new PredicateLessThan(searchfor, true);
        entry = "b";
        assertFalse(predicate.apply(entry));

        searchfor = "a";
        predicate = new PredicateLessThan(searchfor, true);
        entry = null;
        assertFalse(predicate.apply(entry));
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.index.property.strategy.OrderedContentMirrorStoreStrategy.PredicateLessThan

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.