Examples of TNullExpression


Examples of com.foundationdb.server.types.texpressions.TNullExpression

        public void fillNulls(Index index, TPreparedExpression[] keys) {
            List<IndexColumn> indexColumns = index.getAllColumns();
            for (int i = 0; i < keys.length; ++i) {
                if (keys[i] == null)
                    keys[i] = new TNullExpression(indexColumns.get(i).getColumn().getType());
            }
        }
View Full Code Here

Examples of com.foundationdb.server.types.texpressions.TNullExpression

                                     InputPreservationOption inputPreservation) {
            return API.ifEmpty_Default(input, rowType, createNulls(rowType), inputPreservation);
        }

        protected TPreparedExpression nullExpression(RowType rowType, int i) {
            return new TNullExpression(rowType.typeAt(i));
        }
View Full Code Here

Examples of com.foundationdb.server.types.texpressions.TNullExpression

            throw new UnsupportedSQLException("Aggregate used as regular function",
                    node.getSQLsource());
        else if (node instanceof ColumnDefaultExpression)
            return assembleColumnDefault(((ColumnDefaultExpression)node).getColumn(), null);
        else if (node instanceof IsNullIndexKey)
            return new TNullExpression(node.getType());
        else
            throw new UnsupportedSQLException("Unknown expression", node.getSQLsource());
    }
View Full Code Here

Examples of com.foundationdb.server.types.texpressions.TNullExpression

            return expr;
        TInstance sourceInstance = expr.resultType();
        if (sourceInstance == null) // CAST(NULL as FOOTYPE)
        {
            toType = toType.withNullable(true);
            return new TNullExpression(toType);
        }
        else if (!toType.equals(sourceInstance))
        {
            // Do type conversion.
            TCast tcast = registryService.getCastsResolver().cast(sourceInstance, toType);
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.