Examples of withExpressions()


Examples of org.hsqldb_voltpatches.index.Index.withExpressions()

                                          idx.isUnique(), idx.isConstraint(),
                                          idx.isForward());

            // A VoltDB extension to support indexed expressions and assume unique attribute
            if (exprArr != null) {
                idx = idx.withExpressions(adjustExprs(exprArr, colIndex, adjust));
            }
            idx = idx.setAssumeUnique(assumeUnique);
            // End of VoltDB extension
            tn.addIndex(idx);
        }
View Full Code Here

Examples of org.hsqldb_voltpatches.index.Index.withExpressions()

    // A VoltDB extension to support indexed expressions
    public final Index createAndAddExprIndexStructure(HsqlName name, int[] columns, Expression[] indexExprs, boolean unique, boolean constraint) {

        Index newExprIndex = createIndexStructure(name, columns, null, null, unique, constraint, false);
        newExprIndex = newExprIndex.withExpressions(indexExprs);
        addIndex(newExprIndex);
        return newExprIndex;
    } /* createAndAddExprIndexStructure */

    // A VoltDB extension to support LIMIT PARTITION ROWS
View Full Code Here

Examples of org.hsqldb_voltpatches.index.Index.withExpressions()

        // create an autonamed index
        HsqlName indexname = database.nameManager.newAutoName("IDX",
            name.name, table.getSchemaName(), table.getName(),
            SchemaObject.INDEX);
        Index exprIndex = table.createIndexStructure(indexname, cols, null, null, true, true, false);
        exprIndex = exprIndex.withExpressions(indexExprs);
        Constraint constraint = new Constraint(name, table, exprIndex, Constraint.UNIQUE).setAssumeUnique(assumeUnique);
        Table tn = table.moveDefinition(session, table.tableType, null,
                                        constraint, exprIndex, -1, 0, emptySet, emptySet);
        tn.moveData(session, table, -1, 0);
        database.persistentStoreCollection.releaseStore(table);
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.