Package org.voltdb.catalog

Examples of org.voltdb.catalog.Procedure


   
    /**
     * testGenerateProcParameterOrder
     */
    public void testGenerateProcParameterOrder() throws Exception {
        Procedure catalog_proc = this.getProcedure(GetNewDestination.class);
        Set<String> param_order = PartitionerUtil.generateProcParameterOrder(this.info, catalog_db, catalog_proc, hints);
        assertNotNull(param_order);
        assertFalse(param_order.isEmpty());
       
        // We should get back the first ProcParameter for each Procedure, since that maps to S_ID
View Full Code Here


    /**
     * testProcedureEntrySerialization
     */
    @Test
    public void testProcedureEntrySerialization() throws Exception {
        Procedure catalog_proc = this.getProcedure(neworder.class);
        ProcParameter catalog_params[] = {
            this.getProcParameter(catalog_proc, 0),
            this.getProcParameter(catalog_proc, 1),
        };
       
View Full Code Here

    /**
     * testProcedureColumns
     */
    public void testProcedureColumns() throws Exception {
        this.partitioner.init(this.hints);
        Procedure catalog_proc = this.getProcedure(UpdateSubscriberData.class);
        Table catalog_tbl0 = this.getTable(TM1Constants.TABLENAME_SUBSCRIBER);
        Table catalog_tbl1 = this.getTable(TM1Constants.TABLENAME_SPECIAL_FACILITY);
        Column expected[] = {
            this.getColumn(catalog_tbl0, "S_ID"),
            this.getColumn(catalog_tbl0, "BIT_1"),
View Full Code Here

    /**
     * testProcedureColumnAccessHistogram
     */
    public void testProcedureColumnAccessHistogram() throws Exception {
        this.partitioner.init(this.hints);
        Procedure catalog_proc = this.getProcedure(UpdateSubscriberData.class);
        Table catalog_tbl0 = this.getTable(TM1Constants.TABLENAME_SUBSCRIBER);
        Table catalog_tbl1 = this.getTable(TM1Constants.TABLENAME_SPECIAL_FACILITY);
        Column expected[] = {
            this.getColumn(catalog_tbl0, "S_ID"),
            this.getColumn(catalog_tbl0, "BIT_1"),
View Full Code Here

   
    /**
     * testFindBestProcParameter
     */
    public void testFindBestProcParameter() throws Exception {
        Procedure catalog_proc = this.getProcedure(UpdateSubscriberData.class);
        ProcParameter catalog_param = null;

        this.partitioner.init(this.hints);
        catalog_param = this.partitioner.findBestProcParameter(this.hints, catalog_proc);
        assertNotNull(catalog_param);
View Full Code Here

     * testGenerateMultiProcParameters
     */
    @Test
    public void testGenerateMultiProcParameters() throws Exception {
        hints.enable_multi_partitioning = true;
        Procedure catalog_proc = this.getProcedure(UpdateSubscriberData.class);
        Collection<ProcParameter> orig_params = CollectionUtil.addAll(new ArrayList<ProcParameter>(), catalog_proc.getParameters());
        int orig_size = orig_params.size();
        Map<ProcParameter, Set<MultiProcParameter>> param_multip_map = PartitionerUtil.generateMultiProcParameters(info, hints, catalog_proc);
        assertNotNull(param_multip_map);
        assertEquals(orig_size, param_multip_map.size());

View Full Code Here

    /**
     * testGenerateMultiColumns
     */
    public void testGenerateMultiColumns() throws Exception {
        hints.enable_multi_partitioning = true;
        Procedure catalog_proc = this.getProcedure(GetAccessData.class);
        Table catalog_tbl = this.getTable(TM1Constants.TABLENAME_ACCESS_INFO);
        Column expected[] = {
            this.getColumn(catalog_tbl, "S_ID"),
            this.getColumn(catalog_tbl, "AI_TYPE"),
        };
View Full Code Here

        {

            @Override
            public void whenSelecting(String selectedItemName)
            {
                Procedure curProc = ProcEnv.getProcedure(m_lstProcNames.getSelectedValue().toString());
                ProcParameter para = curProc.getParameters().get(getSelectedIndex());
                RandomDistributionEditorManager.display(m_paneParaDistribution, para);
            }
        });
    }
View Full Code Here

                clearParaEditPane();
            }

            private void showProcParaList(String sProcName)
            {
                Procedure proc = ProcEnv.getProcedure(sProcName);
                String[] paraTypeNames = ProcEnv.getParaVoltTypeNames(proc);
                m_lstProcParaNames.setListData(paraTypeNames);
            }

            private void showProcProbability(String sProcName)
View Full Code Here

        this.writeFile(graph);
       
        String contents = FileUtil.readFile(this.tempFile);
        assertFalse(contents.isEmpty());
        for (AbstractVertex v : graph.getVertices()) {
            Procedure catalog_proc = v.getCatalogItem();
            assertTrue(catalog_proc.getName(), contents.contains(catalog_proc.getName()));
        } // FOR
    }
View Full Code Here

TOP

Related Classes of org.voltdb.catalog.Procedure

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.