Package ra

Examples of ra.Term.execute()


        //General Join
        Utils.reset();
        t = genJoin(rel(1), rel(1), "TRUE()");
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_genJoin1.xml", t);
        ats.writeExcel("examples/excel_genJoin1.xlsx", r);
        t = ats.readAlgebra("examples/test_genJoin1.xml");
View Full Code Here


        System.out.println("----------------------------------------------------");

        Utils.reset();
        t = genJoin(rel(2), rel(2), "#2<#4");
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_genJoin2.xml", t);
        ats.writeExcel("examples/excel_genJoin2.xlsx", r);
        t = ats.readAlgebra("examples/test_genJoin2.xml");
View Full Code Here

        //Projection
        Utils.reset();
        t = project(rel(1), 1);
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_projection1.xml", t);
        ats.writeExcel("examples/excel_projection1.xlsx", r);
        t = ats.readAlgebra("examples/test_projection1.xml");
View Full Code Here

        System.out.println("----------------------------------------------------");

        Utils.reset();
        t = project(rel(5), 2, 3, 5);
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_projection2.xml", t);
        ats.writeExcel("examples/excel_projection2.xlsx", r);
        t = ats.readAlgebra("examples/test_projection2.xml");
View Full Code Here

        //SemiJoin
        Utils.reset();
        t = semiJoin(rel(1), rel(1), 1, 1);
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_semijoin1.xml", t);
        ats.writeExcel("examples/excel_semijoin1.xlsx", r);
        t = ats.readAlgebra("examples/test_semijoin1.xml");
View Full Code Here

        System.out.println("----------------------------------------------------");

        Utils.reset();
        t = semiJoin(rel(2), rel(2), 1, 2);
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_semijoin2.xml", t);
        ats.writeExcel("examples/excel_semijoin2.xlsx", r);
        t = ats.readAlgebra("examples/test_semijoin2.xml");
View Full Code Here

        //Sort
        Utils.reset();
        t = sortAsc(rel(3), 1);
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_sortAsc1.xml", t);
        ats.writeExcel("examples/excel_sortAsc1.xlsx", r);
        t = ats.readAlgebra("examples/test_sortAsc1.xml");
View Full Code Here

        System.out.println("----------------------------------------------------");

        Utils.reset();
        t = sortDesc(rel(3), 1);
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_sortDesc1.xml", t);
        ats.writeExcel("examples/excel_sortDesc1.xlsx", r);
        t = ats.readAlgebra("examples/test_sortDesc1.xml");
View Full Code Here

        //Standarization
        Utils.reset();
        t = stand(rel(3));
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_standarization1.xml", t);
        ats.writeExcel("examples/excel_standarization1.xlsx", r);
        t = ats.readAlgebra("examples/test_standarization1.xml");
View Full Code Here

        //Union
        Utils.reset();
        t = union(rel(2), rel(2));
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_union1.xml", t);
        ats.writeExcel("examples/excel_union1.xlsx", r);
        t = ats.readAlgebra("examples/test_union1.xml");
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.