Package edu.brown.designer

Examples of edu.brown.designer.DesignerInfo


        this.info = this.generateInfo(catalogContext);
        this.hints = new DesignerHints();
    }
   
    protected DesignerInfo generateInfo(CatalogContext catalogContext) {
        DesignerInfo info = new DesignerInfo(catalogContext, workload);
        info.setStats(stats);
        info.setMappings(mappings);
        info.setMappingsFile(mappings_file);
        info.setNumThreads(NUM_THREADS);
        info.setNumIntervals(NUM_INTERVALS);
        return (info);
    }
View Full Code Here


            correlations.load(correlations_file, catalog_db);
        }
       
        // Setup everything else (that's just how we roll up in this ma)
        this.workload = new Workload(catalog);
        this.info = new DesignerInfo(catalogContext, this.workload);
        this.info.setPartitionerClass(PrimaryKeyPartitioner.class);
        this.info.setMappings(correlations);
        this.info.setMappingsFile(correlations_file);
        this.hints = new DesignerHints();
View Full Code Here

    protected void setUp() throws Exception {
        super.setUp(ProjectType.TM1, true);
       
        // Setup everything else (that's just how we roll up in this ma)
        this.workload = new Workload(catalog);
        this.info = new DesignerInfo(catalogContext, this.workload);
        this.info.setPartitionerClass(RandomPartitioner.class);
        this.hints = new DesignerHints();

        this.designer = new Designer(this.info, this.hints, this.info.getArgs());
        this.partitioner = (RandomPartitioner)this.designer.getPartitioner();
View Full Code Here

        }
        assertTrue(workload.getTransactionCount() > 0);
       
        // Setup everything else
        this.catalog_proc = this.getProcedure(TARGET_PROCEDURE);
        this.info = new DesignerInfo(catalogContext, workload);
       
        this.agraph = new AccessGraph(catalog_db);
        this.generator = new AccessGraphGenerator(this.info, this.catalog_proc);
    }
View Full Code Here

            ((Workload)workload).load(workload_file, catalog_db, filter);
        }
       
        // Setup everything else
        this.catalog_proc = this.getProcedure(TARGET_PROCEDURE);
        this.info = new DesignerInfo(catalogContext, workload);
       
        this.agraph = new AccessGraph(catalog_db);
        this.generator = new AccessGraphGenerator(this.info, this.catalog_proc);
    }
View Full Code Here

        } // FOR
    }
   
    public void executeDesigner() {
        if (this.args.workload == null) return;
        DesignerInfo info = new DesignerInfo(this.args);
        DesignerHints hints = new DesignerHints();
        hints.proc_exclude.add("ResetWarehouse");
//        hints.proc_whitelist.add("neworder");
//        hints.proc_whitelist.add("delivery");
//        hints.proc_include.add("slev");
View Full Code Here

        menuItem.putClientProperty(MenuHandler.MENU_ID, MenuHandler.MENU_QUIT);
        menu.add(menuItem);
       
        DependencyGraph dgraph = new DependencyGraph(this.args.catalog_db);
        try {
            new DependencyGraphGenerator(new DesignerInfo(args.catalogContext, args.workload, args.stats)).generate(dgraph);
            this.graph_panel = GraphVisualizationPanel.factory(dgraph);
        } catch (Exception ex) {
            ex.printStackTrace();
            System.exit(1);
        }
View Full Code Here

    }

    public static void main(String[] vargs) throws Exception {
        ArgumentsParser args = ArgumentsParser.load(vargs);
        args.require(ArgumentsParser.PARAM_CATALOG, ArgumentsParser.PARAM_WORKLOAD);
        DesignerInfo info = new DesignerInfo(args);
        boolean global = true;
        boolean single = false;

        if (global) {
            AccessGraph agraph = AccessGraphGenerator.generateGlobal(info);
View Full Code Here

     * @param catalog_db
     * @return
     */
    public static DependencyGraph generate(CatalogContext catalogContext) {
        DependencyGraph dgraph = new DependencyGraph(catalogContext.database);
        DesignerInfo info = new DesignerInfo(catalogContext, new Workload(catalogContext.catalog));
        try {
            new DependencyGraphGenerator(info).generate(dgraph);
        } catch (Exception ex) {
            ex.printStackTrace();
            return (null);
View Full Code Here

    private static final String HOST_INNER = "\u251c";
    private static final String HOST_LAST = "\u2514";

    public static double complexity(ArgumentsParser args, Database catalog_db, Workload workload) throws Exception {
        AccessGraph agraph = new AccessGraph(catalog_db);
        DesignerInfo info = new DesignerInfo(args);
        for (Procedure catalog_proc : catalog_db.getProcedures()) {
            // Skip if there are no transactions in the workload for this
            // procedure
            if (workload.getTraces(catalog_proc).isEmpty() || catalog_proc.getSystemproc())
                continue;
View Full Code Here

TOP

Related Classes of edu.brown.designer.DesignerInfo

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.