Package org.apache.phoenix.expression

Examples of org.apache.phoenix.expression.StringConcatExpression.evaluate()


        for (Expression child:children) {
            isLiteralExpression&=(child instanceof LiteralExpression);
        }
        ImmutableBytesWritable ptr = context.getTempPtr();
        if (isLiteralExpression) {
            expression.evaluate(null,ptr);
            return LiteralExpression.newConstant(expression.getDataType().toObject(ptr));
        }
        return wrapGroupByExpression(expression);
    }
View Full Code Here


                .setMessage("Concatenation does not support "+ type +" in expression" + node).build().buildException();
            }
        }
        ImmutableBytesWritable ptr = context.getTempPtr();
        if (expression.isStateless()) {
            if (!expression.evaluate(null,ptr) || ptr.getLength() == 0) {
                return LiteralExpression.newConstant(null, expression.getDataType(), expression.isDeterministic());
            }
            return LiteralExpression.newConstant(expression.getDataType().toObject(ptr), expression.getDataType(), expression.isDeterministic());
        }
        return wrapGroupByExpression(expression);
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.