Package ra

Examples of ra.Term.execute()


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

        Utils.reset();
        t = diffSet(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_difference_set2.xml", t);
        ats.writeExcel("examples/excel_difference_set2.xlsx", r);
        t = ats.readAlgebra("examples/test_difference_set2.xml");
View Full Code Here


        //Duplicate removal
        Utils.reset();
        t = dupRem(rel(1));
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_duprem1.xml", t);
        ats.writeExcel("examples/excel_duprem1.xlsx", r);
        t = ats.readAlgebra("examples/test_duprem1.xml");
View Full Code Here

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

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

        //Equality Join
        Utils.reset();
        t = eqJoin(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_eqjoin1.xml", t);
        ats.writeExcel("examples/excel_eqjoin1.xlsx", r);
        t = ats.readAlgebra("examples/test_eqjoin1.xml");
View Full Code Here

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

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

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

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

        //Filter
        Utils.reset();
        t = filter(rel(1), "TRUE()");
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_filter1.xml", t);
        ats.writeExcel("examples/excel_filter1.xlsx", r);
        t = ats.readAlgebra("examples/test_filter1.xml");
View Full Code Here

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

        Utils.reset();
        t = filter(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_filter2.xml", t);
        ats.writeExcel("examples/excel_filter2.xlsx", r);
        t = ats.readAlgebra("examples/test_filter2.xml");
View Full Code Here

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

        Utils.reset();
        t = filter(rel(1), "#1=\"X\"");
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_filter3.xml", t);
        ats.writeExcel("examples/excel_filter3.xlsx", r);
        t = ats.readAlgebra("examples/test_filter3.xml");
View Full Code Here

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

        Utils.reset();
        t = filter(rel(3), "#2=2");
        System.out.println(t);
        r = t.execute();
        System.out.println(r.getResultRelation());
        System.out.println(r.getFormulas());
        ats.storeAlgebra("examples/test_filter4.xml", t);
        ats.writeExcel("examples/excel_filter4.xlsx", r);
        t = ats.readAlgebra("examples/test_filter4.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.