Package org.apache.yaoql

Examples of org.apache.yaoql.ObjectAllTypes


        assertEvalTrue("NOT 'a' NOT IN ('a', 'b')");
        assertEvalFalse("'a' IN ('d', 'b')");
        assertEvalTrue("'a' NOT IN ('d', 'b')");

        HConnection connection = HConnectionManager.newConnection();
        final ObjectAllTypes obj = new ObjectAllTypes("aaabbb", 3, "aaab");

        assertReflectionEvalTrue(obj, "keyval CONTAINS 'ab'");
        assertReflectionEvalFalse(obj, "keyval CONTAINS 'ba'");
        assertReflectionEvalFalse(obj, "'asasas' CONTAINS stringValue");
        assertReflectionEvalTrue(obj, "'xxaaabxx' CONTAINS stringValue");
View Full Code Here


        assertExpressionEvalTrue(tree);

        tree.setParameter("b", "z");
        assertExpressionEvalFalse(tree);

        final ObjectAllTypes obj = new ObjectAllTypes("aaabbb", 3, "aaab");

        tree = parseReflectionExpr(obj, "keyval CONTAINS :a");
        tree.setParameter("a", "ab");
        assertExpressionEvalTrue(obj, tree);
        tree.setParameter("a", "ba");
View Full Code Here

TOP

Related Classes of org.apache.yaoql.ObjectAllTypes

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.