Package co.nubetech.crux.model

Examples of co.nubetech.crux.model.ReportDesign


    filters.add(rowFilter);
    report.setRowAliasFilters(filters);

    rowFilter.setValue("row5");
   
    ReportDesign colDesign1 = new ReportDesign();
    colDesign1.setColumnAlias(cAlias);
    report.addDesign(colDesign1);
   
    HBaseFacade hbaseFacade = new HBaseFacade(pool);
    CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
    assertTrue(scanner instanceof CruxScannerResultImpl);
View Full Code Here


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

    rowFilter.setValue("4");
    ReportDesign colDesign = new ReportDesign();
    colDesign.setColumnAlias(cAlias);
    report.addDesign(colDesign);
   
    ReportDesign colDesign1 = new ReportDesign();
    colDesign1.setColumnAlias(cAlias1);
    report.addDesign(colDesign1);
   

    ReportDesign colDesign2 = new ReportDesign();
    colDesign2.setColumnAlias(cAlias2);
    report.addDesign(colDesign2);
   
    HBaseFacade hbaseFacade = new HBaseFacade(pool);
    CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
    assertTrue(scanner instanceof CruxScannerResultImpl);
View Full Code Here

    ArrayList<RowAliasFilter> filters = new ArrayList<RowAliasFilter>();
    filters.add(rowFilter);
    report.setRowAliasFilters(filters);
    rowFilter.setValue("4");
   
    ReportDesign colDesign1 = new ReportDesign();
    colDesign1.setColumnAlias(cAlias);
    report.addDesign(colDesign1);
   
    ReportDesign colDesign2 = new ReportDesign();
    colDesign2.setColumnAlias(cAlias1);
    report.addDesign(colDesign2);
   
    HBaseFacade hbaseFacade = new HBaseFacade(pool);
    CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
    assertTrue(scanner instanceof CruxScannerResultImpl);
View Full Code Here

    filters.add(rowFilter);
    report.setRowAliasFilters(filters);

    rowFilter.setValue("true");   
   
    ReportDesign colDesign1 = new ReportDesign();
    colDesign1.setColumnAlias(cAlias);
    report.addDesign(colDesign1);
   
    ReportDesign colDesign2 = new ReportDesign();
    colDesign2.setColumnAlias(cAlias1);
    report.addDesign(colDesign2);
   
    ReportDesign colDesign3 = new ReportDesign();
    colDesign3.setColumnAlias(cAlias2);
    report.addDesign(colDesign3);
   
    HBaseFacade hbaseFacade = new HBaseFacade(pool);
    CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
    assertTrue(scanner instanceof CruxScannerResultImpl);
View Full Code Here

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

    ReportDesign colDesign1 = new ReportDesign();
    colDesign1.setColumnAlias(cAlias);
    report.addDesign(colDesign1);
   
    ReportDesign colDesign2 = new ReportDesign();
    colDesign2.setColumnAlias(cAlias1);
    report.addDesign(colDesign2);
   
    ReportDesign colDesign3 = new ReportDesign();
    colDesign3.setColumnAlias(cAlias2);
    report.addDesign(colDesign3);
   
    rowFilter1.setValue("11");
    rowFilter2.setValue("true");
View Full Code Here

    rowFilter1.setValue("11");
    rowFilter2.setValue("11");
    rowFilter3.setValue("I am a String11");
   
    ReportDesign colDesign1 = new ReportDesign();
    colDesign1.setColumnAlias(cAlias);
    report.addDesign(colDesign1);
   
    ReportDesign colDesign2 = new ReportDesign();
    colDesign2.setColumnAlias(cAlias1);
    report.addDesign(colDesign2);
   
    ReportDesign colDesign3 = new ReportDesign();
    colDesign3.setColumnAlias(cAlias2);
    report.addDesign(colDesign3);
   
    HBaseFacade hbaseFacade = new HBaseFacade(pool);
    CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
    assertTrue(scanner instanceof CruxScannerResultImpl);
View Full Code Here

    rowFilter1.setValue("11");
    rowFilter2.setValue("11");
    rowFilter3.setValue("I am a String11");

    ReportDesign colDesign1 = new ReportDesign();
    colDesign1.setColumnAlias(cAlias);
    report.addDesign(colDesign1);
   
    ReportDesign colDesign2 = new ReportDesign();
    colDesign2.setColumnAlias(cAlias1);
    report.addDesign(colDesign2);
   
    ReportDesign colDesign3 = new ReportDesign();
    colDesign3.setColumnAlias(cAlias2);
    report.addDesign(colDesign3);
   
    HBaseFacade hbaseFacade = new HBaseFacade(pool);
    CruxScanner scanner = hbaseFacade.execute(connection, report, mapping);
    assertTrue(scanner instanceof CruxScannerResultImpl);
View Full Code Here

    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

    List<Stack<CruxFunction>> functions = report.getFunctions();
    if (report != null && result != null) {
      Collection<ReportDesign> designs = report.getDesigns();
      if (designs != null) {
        if (index < designs.size()) {
          ReportDesign design = report.getDesigns().get(index);
          Object val = ServerUtil.getObjectValue(result, ServerUtil.getAlias(design));
          return FunctionUtil.getResultByApplyingAllFunctions(val, functions.get(index));         
        }
      }
    }   
View Full Code Here

      for (String axis : axisArray) {
        logger.debug("axis: " + axis);
        if (!axis.equals("")) {
          String[] axisNameValue = axis.split(",");
          if (!axisNameValue[1].equals("")) {
            ReportDesign reportDesign = new ReportDesign();
            reportDesign.setReport(report);

            String aliasFunction = axisNameValue[1];
            String aliasName = getAliasName(aliasFunction);

            reportDesign
                .setReportDesignFunctionList(getReportDesignFunctionList(
                    aliasFunction, reportDesign));
            reportDesign.setMappingAxis(axisNameValue[0]);
            if (hashColumnAlias.containsKey(aliasName)) {
              reportDesign.setColumnAlias(hashColumnAlias
                  .get(aliasName));

            } else if (hashRowAlias.containsKey(aliasName)) {
              reportDesign.setRowAlias(hashRowAlias
                  .get(aliasName));
            }
            designList.add(reportDesign);
            logger.debug("ReportDesign object:" + reportDesign);
          }
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.