示例#1
0
  protected CellRequest createRequest(
      final String cube,
      final String measureName,
      final String[] tables,
      final String[] columns,
      final String[] values,
      CellRequestConstraint aggConstraint) {
    RolapStar.Measure starMeasure = getMeasure(cube, measureName);

    CellRequest request = createRequest(cube, measureName, tables, columns, values);
    final RolapStar star = starMeasure.getStar();

    request.addAggregateList(aggConstraint.getBitKey(star), aggConstraint.toPredicate(star));

    return request;
  }
示例#2
0
 protected CellRequest createRequest(
     final String cube,
     final String measureName,
     final String[] tables,
     final String[] columns,
     final String[] values) {
   RolapStar.Measure starMeasure = getMeasure(cube, measureName);
   CellRequest request = new CellRequest(starMeasure, false, false);
   final RolapStar star = starMeasure.getStar();
   for (int i = 0; i < tables.length; i++) {
     String table = tables[i];
     if (table != null && table.length() > 0) {
       String column = columns[i];
       String value = values[i];
       final RolapStar.Column storeTypeColumn = star.lookupColumn(table, column);
       request.addConstrainedColumn(
           storeTypeColumn, new ValueColumnPredicate(storeTypeColumn, value));
     }
   }
   return request;
 }