Package co.nubetech.crux.model

Examples of co.nubetech.crux.model.ReportDesign


    ArrayList<RowAliasFilter> filters = new ArrayList<RowAliasFilter>();
    filters.add(rowFilter);
    report.setRowAliasFilters(filters);
   
    ReportDesign design = new ReportDesign();
    design.setRowAlias(rAlias);
    report.addDesign(design);

    HBaseFacade hbaseFacade = new HBaseFacade(pool);
    CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
    assertTrue(scanner instanceof CruxScannerResultScannerImpl);
View Full Code Here


      ArrayList<RowAliasFilter> filters = new ArrayList<RowAliasFilter>();
      filters.add(rowFilter);
      report.setRowAliasFilters(filters);
     
      ReportDesign design = new ReportDesign();
      design.setColumnAlias(cAlias);
      report.addDesign(design);     
      ReportDesign design1 = new ReportDesign();
      design1.setColumnAlias(cAlias2);
      report.addDesign(design1);     
      ReportDesign design3 = new ReportDesign();
      design3.setRowAlias(rAlias1);
      report.addDesign(design3);
      ReportDesign design4 = new ReportDesign();
      design4.setRowAlias(rAlias2);
      report.addDesign(design4);
      ReportDesign design5 = new ReportDesign();
      design5.setRowAlias(rAlias3);
      report.addDesign(design5);

      HBaseFacade hbaseFacade = new HBaseFacade(pool);
      CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
      assertTrue(scanner instanceof CruxScannerResultScannerImpl);
View Full Code Here

    ArrayList<RowAliasFilter> filters = new ArrayList<RowAliasFilter>();
    filters.add(rowFilter);
    report.setRowAliasFilters(filters);

    ReportDesign design = new ReportDesign();
    design.setRowAlias(rAlias);
    design.setReport(report);
    report.addDesign(design);
   
    HBaseFacade hbaseFacade = new HBaseFacade(pool);
    CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
    assertTrue(scanner instanceof CruxScannerResultScannerImpl);
View Full Code Here

    ArrayList<RowAliasFilter> filters = new ArrayList<RowAliasFilter>();
    filters.add(rowFilter);
    report.setRowAliasFilters(filters);
   
    ReportDesign design = new ReportDesign();
    design.setRowAlias(rAlias);
    design.setReport(report);
    report.addDesign(design);
   
    HBaseFacade hbaseFacade = new HBaseFacade(pool);
    CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
    assertTrue(scanner instanceof CruxScannerResultScannerImpl);
View Full Code Here

    ArrayList<RowAliasFilter> filters = new ArrayList<RowAliasFilter>();
    filters.add(rowFilter);
    report.setRowAliasFilters(filters);
   
    ReportDesign design = new ReportDesign();
    design.setRowAlias(rAlias);
    design.setReport(report);
    report.addDesign(design);
   
    HBaseFacade hbaseFacade = new HBaseFacade(pool);
    CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
    assertTrue(scanner instanceof CruxScannerResultScannerImpl);
View Full Code Here

            ArrayList<RowAliasFilter> filters = new ArrayList<RowAliasFilter>();
            filters.add(rowFilter);
            report.setRowAliasFilters(filters);
           
      ReportDesign design = new ReportDesign();
      design.setColumnAlias(cAlias);
      report.addDesign(design);     
      ReportDesign design1 = new ReportDesign();
      design1.setColumnAlias(cAlias2);
      report.addDesign(design1);     
      ReportDesign design3 = new ReportDesign();
      design3.setRowAlias(rAlias1);
      report.addDesign(design3);
      ReportDesign design4 = new ReportDesign();
      design4.setRowAlias(rAlias2);
      report.addDesign(design4);
      ReportDesign design5 = new ReportDesign();
      design5.setRowAlias(rAlias3);
      report.addDesign(design5);

            HBaseFacade hbaseFacade = new HBaseFacade(pool);
            CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
            assertTrue(scanner instanceof CruxScannerResultScannerImpl);
View Full Code Here

            report.setRowAliasFilters(filters);
           
            Function upper = TestingUtil.getFunction("upper",
            "co.nubetech.crux.server.functions.UpperCase", false);
       
        ReportDesign design = new ReportDesign();
      design.setColumnAlias(cAlias);
      List<ReportDesignFunction> xFunctions = new ArrayList<ReportDesignFunction>();
      xFunctions.add(TestingUtil.getReportDesignFunction(upper, design));
      design.setReportDesignFunctionList(xFunctions);     
      report.addDesign(design);
     
      ReportDesign design1 = new ReportDesign();
      design1.setColumnAlias(cAlias2);
      List<ReportDesignFunction> yFunctions = new ArrayList<ReportDesignFunction>();
      yFunctions.add(TestingUtil.getReportDesignFunction(upper, design1));
      design1.setReportDesignFunctionList(yFunctions);
      report.addDesign(design1);     

            HBaseFacade hbaseFacade = new HBaseFacade(pool);
            CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
            assertTrue(scanner instanceof CruxScannerResultScannerImpl);
View Full Code Here

            Function max = TestingUtil.getFunction("max",
            "co.nubetech.crux.server.functions.MaxAggregator", false);
            Function min = TestingUtil.getFunction("max",
            "co.nubetech.crux.server.functions.MinAggregator", false);
       
            ReportDesign design3 = new ReportDesign();
      design3.setRowAlias(rAlias1);
      List<ReportDesignFunction> xFunctions = new ArrayList<ReportDesignFunction>();
      xFunctions.add(TestingUtil.getReportDesignFunction(max, design3));
      design3.setReportDesignFunctionList(xFunctions);     
      report.addDesign(design3);
     
      ReportDesign design4 = new ReportDesign();
      design4.setRowAlias(rAlias1);
      List<ReportDesignFunction> functions = new ArrayList<ReportDesignFunction>();
      functions.add(TestingUtil.getReportDesignFunction(min, design4));
      design4.setReportDesignFunctionList(functions);     
      report.addDesign(design4);
     
      HBaseFacade hbaseFacade = new HBaseFacade(pool);
            CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
            assertTrue(scanner instanceof CruxScannerListImpl);
View Full Code Here

            "co.nubetech.crux.server.functions.MinAggregator", true);

            Function sum = TestingUtil.getFunction("sum",
            "co.nubetech.crux.server.functions.SumDoubleAggregator", true);
       
            ReportDesign design3 = new ReportDesign();
      design3.setRowAlias(rAlias1);
      List<ReportDesignFunction> xFunctions = new ArrayList<ReportDesignFunction>();
      xFunctions.add(TestingUtil.getReportDesignFunction(max, design3));
      design3.setReportDesignFunctionList(xFunctions);     
      report.addDesign(design3);
     
      ReportDesign design4 = new ReportDesign();
      design4.setRowAlias(rAlias1);
      List<ReportDesignFunction> functions = new ArrayList<ReportDesignFunction>();
      functions.add(TestingUtil.getReportDesignFunction(min, design4));
      design4.setReportDesignFunctionList(functions);     
      report.addDesign(design4);

      ReportDesign design5 = new ReportDesign();
      design5.setColumnAlias(cAlias1);
      List<ReportDesignFunction> cfunctions = new ArrayList<ReportDesignFunction>();
      cfunctions.add(TestingUtil.getReportDesignFunction(sum, design5));
      design5.setReportDesignFunctionList(cfunctions);     
      report.addDesign(design5);
     
      HBaseFacade hbaseFacade = new HBaseFacade(pool);
            CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
            assertTrue(scanner instanceof CruxScannerListImpl);
View Full Code Here

      assertEquals(resultRep.getUser().getId(), 1l);
      assertEquals(resultRep.getNumRecordsPerPage(), 25l);
     
      ArrayList<ReportDesign> designs = new ArrayList<ReportDesign>(
          resultRep.getDesigns());
      ReportDesign design = designs.get(0);
 
      assertEquals(design.getId(), 99999l);
      assertEquals(design.getReport().getId(), 99999l);
      assertEquals(design.getMappingAxis(), "x");
      assertEquals(1, resultRep.getGroupBys().getId());
      assertEquals(1, resultRep.getGroupBys().getGroupBy().get(0).getId());
      assertEquals(1, resultRep.getGroupBys().getGroupBy().get(0).getPosition());
      assertEquals(2, resultRep.getGroupBys().getGroupBy().get(1).getId());
      assertEquals(2, resultRep.getGroupBys().getGroupBy().get(1).getPosition());   
View Full Code Here

TOP

Related Classes of co.nubetech.crux.model.ReportDesign

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.