Package edu.brown.catalog.special

Examples of edu.brown.catalog.special.VerticalPartitionColumn


    public void testVerticalPartitionColumn() throws Exception {
        Table catalog_tbl = this.getTable(TM1Constants.TABLENAME_SUBSCRIBER);
        Column orig_hp_col = this.getColumn(catalog_tbl, "S_ID");
        MultiColumn orig_vp_col = MultiColumn.get(this.getColumn(catalog_tbl, "S_ID"), this.getColumn(catalog_tbl, "SUB_NBR"), this.getColumn(catalog_tbl, "VLR_LOCATION"));

        VerticalPartitionColumn item0 = VerticalPartitionColumn.get(orig_hp_col, orig_vp_col);
        assertNotNull(item0);

        String key = CatalogKey.createKey(item0);
        assertNotNull(key);
        assertFalse(key.isEmpty());
        // System.err.println(item0 + "\n" + key);

        MultiColumn clone = (MultiColumn) CatalogKey.getFromKey(catalog_db, key, Column.class);
        assertNotNull(clone);
        assertEquals(item0.size(), clone.size());
    }
View Full Code Here

TOP

Related Classes of edu.brown.catalog.special.VerticalPartitionColumn

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.