Examples of IsNotNullPredicate


Examples of com.facebook.presto.sql.tree.IsNotNullPredicate

        if (domain.getRanges().isNone()) {
            return domain.isNullAllowed() ? new IsNullPredicate(reference) : FALSE_LITERAL;
        }

        if (domain.getRanges().isAll()) {
            return domain.isNullAllowed() ? TRUE_LITERAL : new IsNotNullPredicate(reference);
        }

        // Add disjuncts for ranges
        List<Expression> disjuncts = new ArrayList<>();
        List<Expression> singleValues = new ArrayList<>();
View Full Code Here

Examples of com.facebook.presto.sql.tree.IsNotNullPredicate

        protected Object visitIsNotNullPredicate(IsNotNullPredicate node, Object context)
        {
            Object value = process(node.getValue(), context);

            if (value instanceof Expression) {
                return new IsNotNullPredicate(toExpression(value));
            }

            return value != null;
        }
View Full Code Here

Examples of com.facebook.presto.sql.tree.IsNotNullPredicate

        protected Object visitIsNotNullPredicate(IsNotNullPredicate node, Object context)
        {
            Object value = process(node.getValue(), context);

            if (value instanceof Expression) {
                return new IsNotNullPredicate(toExpression(value, expressionTypes.get(node.getValue())));
            }

            return value != null;
        }
View Full Code Here

Examples of com.facebook.presto.sql.tree.IsNotNullPredicate

        protected Object visitIsNotNullPredicate(IsNotNullPredicate node, Object context)
        {
            Object value = process(node.getValue(), context);

            if (value instanceof Expression) {
                return new IsNotNullPredicate(toExpression(value, expressionTypes.get(node.getValue())));
            }

            return value != null;
        }
View Full Code Here

Examples of com.facebook.presto.sql.tree.IsNotNullPredicate

        return comparison(IS_DISTINCT_FROM, reference(symbol), expression);
    }

    private static IsNotNullPredicate isNotNull(Symbol symbol)
    {
        return new IsNotNullPredicate(reference(symbol));
    }
View Full Code Here

Examples of com.facebook.presto.sql.tree.IsNotNullPredicate

        protected Object visitIsNotNullPredicate(IsNotNullPredicate node, Object context)
        {
            Object value = process(node.getValue(), context);

            if (value instanceof Expression) {
                return new IsNotNullPredicate(toExpression(value, expressionTypes.get(node.getValue())));
            }

            return value != null;
        }
View Full Code Here

Examples of com.facebook.presto.sql.tree.IsNotNullPredicate

        protected Object visitIsNotNullPredicate(IsNotNullPredicate node, Object context)
        {
            Object value = process(node.getValue(), context);

            if (value instanceof Expression) {
                return new IsNotNullPredicate(toExpression(value));
            }

            return value != null;
        }
View Full Code Here

Examples of com.facebook.presto.sql.tree.IsNotNullPredicate

        if (domain.getRanges().isNone()) {
            return domain.isNullAllowed() ? new IsNullPredicate(reference) : FALSE_LITERAL;
        }

        if (domain.getRanges().isAll()) {
            return domain.isNullAllowed() ? TRUE_LITERAL : new IsNotNullPredicate(reference);
        }

        // Add disjuncts for ranges
        List<Expression> disjuncts = new ArrayList<>();
        List<Expression> singleValues = new ArrayList<>();
View Full Code Here

Examples of com.facebook.presto.sql.tree.IsNotNullPredicate

        protected Object visitIsNotNullPredicate(IsNotNullPredicate node, Object context)
        {
            Object value = process(node.getValue(), context);

            if (value instanceof Expression) {
                return new IsNotNullPredicate(toExpression(value, expressionTypes.get(node.getValue())));
            }

            return value != null;
        }
View Full Code Here

Examples of com.facebook.presto.sql.tree.IsNotNullPredicate

        protected Object visitIsNotNullPredicate(IsNotNullPredicate node, Object context)
        {
            Object value = process(node.getValue(), context);

            if (value instanceof Expression) {
                return new IsNotNullPredicate(toExpression(value));
            }

            return value != null;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.