Package com.foundationdb.server.types.texpressions

Examples of com.foundationdb.server.types.texpressions.TPreparedParameter$InnerEvaluation


    public static ExpressionGenerator variable(final TInstance type, final int position)
    {
        return new ExpressionGenerator() {
            @Override
            public TPreparedExpression getTPreparedExpression() {
                return new TPreparedParameter(position, type);
            }
        };
    }
View Full Code Here


        List<Column> pkList = table.getPrimaryKey().getColumns();
        int paramIndex = pkList.size();
        int index = 0;
        for (Column column : table.getColumns()) {
            if (!pkList.contains(column) && upColumns.contains(column)) {
                updates[index] new TPreparedParameter(paramIndex, varchar);
               
                if (!column.getType().equals(varchar)) {
                    TCast cast = registryService().getCastsResolver().cast(varchar.typeClass(),
                            column.getType().typeClass());
                    updates[index] = new TCastExpression(updates[index], cast, column.getType());
View Full Code Here

        final int nkeys = pkey.getColumns().size();
        IndexRowType indexType = schema.indexRowType(pkey.getIndex());

        List<TPreparedExpression> pexprs = new ArrayList<>(nkeys);
        for (int i = 0; i < nkeys; i++) {
            pexprs.add(new TPreparedParameter(i, indexType.typeAt(i)));
        }
        IndexBound bound =
            new IndexBound(new RowBasedUnboundExpressions(indexType, pexprs),
                           new ColumnSelector() {
                               @Override
View Full Code Here

        TPreptimeValue ptval = expression.getPreptimeValue();
        return new TPreparedLiteral(ptval.type(), ptval.value());
    }

    private TPreparedExpression variable(ParameterExpression expression) {
        return new TPreparedParameter(expression.getPosition(), expression.getType());
    }
View Full Code Here

            List<TPreparedExpression> vars = new ArrayList<>(plan.ncols);
            for (int i = 0; i < plan.ncols; i++) {
                // Convert from index column position to parameter number.
                Column indexedColumn = crossReferencedColumns.get(i);
                int fkpos = referencedColumns.indexOf(indexedColumn);
                vars.add(new TPreparedParameter(fkpos, indexedColumn.getType()));
            }
            UnboundExpressions indexExprs = new RowBasedUnboundExpressions(indexRowType, vars);
            IndexBound indexBound = new IndexBound(indexExprs, plan);
            IndexKeyRange indexKeyRange = IndexKeyRange.bounded(indexRowType, indexBound, true, indexBound, true);
            input = API.indexScan_Default(indexRowType, indexKeyRange, 1);
View Full Code Here

TOP

Related Classes of com.foundationdb.server.types.texpressions.TPreparedParameter$InnerEvaluation

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.