Package org.apache.derby.iapi.sql.execute

Examples of org.apache.derby.iapi.sql.execute.ExecRowBuilder


            throws StandardException
    {
        int columns = (referencedCols == null) ?
                size() : referencedCols.getNumBitsSet();

        ExecRowBuilder builder = new ExecRowBuilder(columns, indexRow);

        // Get the index of the first column to set in the row template.
        int colNum = (referencedCols == null) ? 0 : referencedCols.anySetBit();

        for (int i = 0; i < size(); i++) {
            ResultColumn rc = (ResultColumn) elementAt(i);

            ValueNode sourceExpr = rc.getExpression();

            if (sourceExpr instanceof CurrentRowLocationNode) {
                builder.setColumn(colNum + 1, newRowLocationTemplate());
            } else if (skipPropagatedCols &&
                    sourceExpr instanceof VirtualColumnNode) {
                // Skip over those columns whose source is the immediate
                // child result set. (No need to generate a wrapper
                // for a SQL NULL when we are smart enough not to pass
                // that wrapper to the store.)
                continue;
            } else {
                builder.setColumn(colNum + 1, rc.getType());
            }

            // Get the index of the next column to set in the row template.
            if (referencedCols == null) {
                colNum++;
View Full Code Here


            throws StandardException
    {
        int columns = (referencedCols == null) ?
                size() : referencedCols.getNumBitsSet();

        ExecRowBuilder builder = new ExecRowBuilder(columns, indexRow);

        // Get the index of the first column to set in the row template.
        int colNum = (referencedCols == null) ? 0 : referencedCols.anySetBit();

        for (ResultColumn rc : this) {
            ValueNode sourceExpr = rc.getExpression();

            if (sourceExpr instanceof CurrentRowLocationNode) {
                builder.setColumn(colNum + 1, newRowLocationTemplate());
            } else if (skipPropagatedCols &&
                    sourceExpr instanceof VirtualColumnNode) {
                // Skip over those columns whose source is the immediate
                // child result set. (No need to generate a wrapper
                // for a SQL NULL when we are smart enough not to pass
                // that wrapper to the store.)
                continue;
            } else {
                builder.setColumn(colNum + 1, rc.getType());
            }

            // Get the index of the next column to set in the row template.
            if (referencedCols == null) {
                colNum++;
View Full Code Here

            // arg 4 row template used by bulk insert
            if (bulkInsert) {
                ColumnDescriptorList cdl =
                        targetTableDescriptor.getColumnDescriptorList();
                ExecRowBuilder builder =
                        new ExecRowBuilder(cdl.size(), false);
                for (int i = 0; i < cdl.size(); i++) {
                    ColumnDescriptor cd = cdl.get(i);
                    builder.setColumn(i + 1, cd.getType());
                }
                mb.push(acb.addItem(builder));
            } else {
                mb.push(-1);
            }
View Full Code Here

            // arg 4 row template used by bulk insert
            if (bulkInsert) {
                ColumnDescriptorList cdl =
                        targetTableDescriptor.getColumnDescriptorList();
                ExecRowBuilder builder =
                        new ExecRowBuilder(cdl.size(), false);
                for (int i = 0; i < cdl.size(); i++) {
                    ColumnDescriptor cd = (ColumnDescriptor) cdl.get(i);
                    builder.setColumn(i + 1, cd.getType());
                }
                mb.push(acb.addItem(builder));
            } else {
                mb.push(-1);
            }
View Full Code Here

            throws StandardException
    {
        int columns = (referencedCols == null) ?
                size() : referencedCols.getNumBitsSet();

        ExecRowBuilder builder = new ExecRowBuilder(columns, indexRow);

        // Get the index of the first column to set in the row template.
        int colNum = (referencedCols == null) ? 0 : referencedCols.anySetBit();

        for (int i = 0; i < size(); i++) {
            ResultColumn rc = (ResultColumn) elementAt(i);

            ValueNode sourceExpr = rc.getExpression();

            if (sourceExpr instanceof CurrentRowLocationNode) {
                builder.setColumn(colNum + 1, newRowLocationTemplate());
            } else if (skipPropagatedCols &&
                    sourceExpr instanceof VirtualColumnNode) {
                // Skip over those columns whose source is the immediate
                // child result set. (No need to generate a wrapper
                // for a SQL NULL when we are smart enough not to pass
                // that wrapper to the store.)
                continue;
            } else {
                builder.setColumn(colNum + 1, rc.getType());
            }

            // Get the index of the next column to set in the row template.
            if (referencedCols == null) {
                colNum++;
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.sql.execute.ExecRowBuilder

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.