Package com.foundationdb.qp.rowtype

Examples of com.foundationdb.qp.rowtype.Schema


    }

    @Override
    protected void setupPostCreateSchema()
    {
        schema = new Schema(ais());
        ancestorRowType = schema.tableRowType(table(ancestor));
        parentRowType = schema.tableRowType(table(parent));
        beforeChildRowType = schema.tableRowType(table(beforeChild));
        childRowType = schema.tableRowType(table(child));
        afterChildRowType = schema.tableRowType(table(afterChild));
View Full Code Here


    }

    @Override
    protected void setupPostCreateSchema()
    {
        schema = new Schema(ais());
        itemRowType = schema.tableRowType(table(item));
        xIndexRowType = indexType(item, "x");
        yIndexRowType = indexType(item, "y");
        xyIndexRowType = indexType(item, "x", "y");
        db = new Row[]{
View Full Code Here

    }

    @Override
    protected void setupPostCreateSchema()
    {
        schema = new Schema(ais());
        tRowType = schema.tableRowType(table(t));
        leftIndexRowType = indexType(t, "test", "l1", "l2", "l3");
        rightIndexRowType = indexType(t, "test", "r1", "r2", "r3");
        coi = group(t);
        adapter = newStoreAdapter(schema);
View Full Code Here

    }

    @Override
    protected void setupPostCreateSchema()
    {
        schema = new Schema(ais());
        parentRowType = schema.tableRowType(table(parent));
        childRowType = schema.tableRowType(table(child));
        group = group(parent);
        adapter = newStoreAdapter(schema);
        queryContext = queryContext(adapter);
View Full Code Here

    }

    @Override
    protected void setupPostCreateSchema()
    {
        schema = new Schema(ais());
        tRowType = schema.tableRowType(table(t));
        tIdIndexRowType = indexType(t, "id");
        tXIndexRowType = indexType(t, "x");
        tYIndexRowType = indexType(t, "y");
        tZIndexRowType = indexType(t, "z");
View Full Code Here

    public void keyAndRow() {
        createFromDDL(SCHEMA,
          "CREATE TABLE t1(id INT PRIMARY KEY NOT NULL, s VARCHAR(128)) STORAGE_FORMAT tuple");
        int t1 = ddl().getTableId(session(), new TableName(SCHEMA, "t1"));

        Schema schema = SchemaCache.globalSchema(ddl().getAIS(session()));
        RowType t1Type = schema.tableRowType(getTable(t1));
        StoreAdapter adapter = newStoreAdapter(schema);

        txnService().beginTransaction(session());

        Object[] r1 = { 1L, "Fred" };
View Full Code Here

          "CREATE TABLE parent(id INT PRIMARY KEY NOT NULL, s VARCHAR(128)) STORAGE_FORMAT tuple(key_only = true);" +
          "CREATE TABLE child(id INT PRIMARY KEY NOT NULL, pid INT, GROUPING FOREIGN KEY(pid) REFERENCES parent(id), s VARCHAR(128));");
        int parent = ddl().getTableId(session(), new TableName(SCHEMA, "parent"));
        int child = ddl().getTableId(session(), new TableName(SCHEMA, "child"));

        Schema schema = SchemaCache.globalSchema(ddl().getAIS(session()));
        RowType parentType = schema.tableRowType(getTable(parent));
        RowType childType = schema.tableRowType(getTable(child));
        StoreAdapter adapter = newStoreAdapter(schema);

        txnService().beginTransaction(session());

        Object[] r1 = { 1L, "Margaret" };
View Full Code Here

    }

    @Override
    protected void setupPostCreateSchema()
    {
        schema = new Schema(ais());
        regionChildrenRowType = schema.tableRowType(table(regionChildren));
        idxRowType = indexType(regionChildren, "locid");
        db = new Row[]{
            // region
            row(region, 10L),
View Full Code Here

    protected void runTest(API.SortOption sortOption, List<String[]> input, List<String[]> expected, boolean... fieldOrdering) {
        assertEquals("input = expected size", input.size(), expected.size());

        RowsBuilder inputRows = createBuilder(input);
        Schema schema = SchemaCache.globalSchema(ddl().getAIS(session()));
        StoreAdapter adapter = newStoreAdapter(schema);
        TestOperator inputOperator = new TestOperator(inputRows);

        QueryContext context = queryContext(adapter);
        QueryBindings bindings = context.createBindings();
View Full Code Here

    }

    @Override
    protected void setupPostCreateSchema()
    {
        schema = new Schema(ais());
        aRowType = schema.tableRowType(table(a));
        bRowType = schema.tableRowType(table(b));
        aGroup = group(a);
        bGroup = group(b);
        db = new Row[]{
View Full Code Here

TOP

Related Classes of com.foundationdb.qp.rowtype.Schema

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.