Package org.saiku.olap.query2.common

Examples of org.saiku.olap.query2.common.ThinSortableQuerySet


    return ax;
  }

  @NotNull
  private static ThinAxis convertAxis(@NotNull QueryAxis queryAxis, @NotNull ThinQuery tq) {
    AxisLocation loc = getLocation(queryAxis);
    List<String> aggs = queryAxis.getQuery().getAggregators(queryAxis.getLocation().toString());
    ThinAxis ta =
        new ThinAxis(loc, convertHierarchies(queryAxis.getQueryHierarchies(), tq), queryAxis.isNonEmpty(), aggs);
    extendSortableQuerySet(ta, queryAxis);
    return ta;
View Full Code Here


    for (IFilterFunction f : filters) {
      if (f instanceof NameFilter) {
        NameFilter nf = (NameFilter) f;
        List<String> expressions = nf.getFilterExpression();
        expressions.add(0, nf.getHierarchy().getUniqueName());
        ThinFilter tf = new ThinFilter(FilterFlavour.Name, FilterOperator.EQUALS, FilterFunction.Filter, expressions);
        tfs.add(tf);
      }
      if (f instanceof NameLikeFilter) {
        NameLikeFilter nf = (NameLikeFilter) f;
        List<String> expressions = nf.getFilterExpression();
        expressions.add(0, nf.getHierarchy().getUniqueName());
        ThinFilter tf = new ThinFilter(FilterFlavour.NameLike, FilterOperator.LIKE, FilterFunction.Filter, expressions);
        tfs.add(tf);
      }
      if (f instanceof GenericFilter) {
        GenericFilter nf = (GenericFilter) f;
        List<String> expressions = new ArrayList<String>();
        expressions.add(nf.getFilterExpression());
        ThinFilter tf = new ThinFilter(FilterFlavour.Generic, null, FilterFunction.Filter, expressions);
        tfs.add(tf);
      }
      if (f instanceof NFilter) {
        NFilter nf = (NFilter) f;
        List<String> expressions = new ArrayList<String>();
        expressions.add(Integer.toString(nf.getN()));
        if (nf.getFilterExpression() != null) {
          expressions.add(nf.getFilterExpression());
        }
        FilterFunction type = FilterFunction.valueOf(nf.getFunctionType().toString());
        ThinFilter tf = new ThinFilter(FilterFlavour.N, null, type, expressions);
        tfs.add(tf);
      }
    }
    return tfs;
  }
View Full Code Here

        List<String> expressions = new ArrayList<String>();
        expressions.add(Integer.toString(nf.getN()));
        if (nf.getFilterExpression() != null) {
          expressions.add(nf.getFilterExpression());
        }
        FilterFunction type = FilterFunction.valueOf(nf.getFunctionType().toString());
        ThinFilter tf = new ThinFilter(FilterFlavour.N, null, type, expressions);
        tfs.add(tf);
      }
    }
    return tfs;
View Full Code Here

TOP

Related Classes of org.saiku.olap.query2.common.ThinSortableQuerySet

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.