@@ -0,0 +1,2136 @@
+/*%0D%0A * Copyright 2014 Ran Meng%0D%0A *%0D%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0D%0A * you may not use this file except in compliance with the License.%0D%0A * You may obtain a copy of the License at%0D%0A *%0D%0A *         http://www.apache.org/licenses/LICENSE-2.0%0D%0A *%0D%0A * Unless required by applicable law or agreed to in writing, software%0D%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0D%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0D%0A * See the License for the specific language governing permissions and%0D%0A * limitations under the License.%0D%0A */%0D%0Apackage com.github.totyumengr.minicubes.core;%0D%0A%0D%0Aimport java.math.BigDecimal;%0D%0Aimport java.util.List;%0D%0Aimport java.util.Map;%0D%0A%0D%0A/**%0D%0A * Define supported calculation operations.%0D%0A * @author mengran%0D%0A *%0D%0A */%0D%0Apublic interface Aggregations %7B%0D%0A%0D%0A    /**%0D%0A     * Calculation scale%0D%0A     */%0D%0A    int IND_SCALE = 8;%0D%0A    %0D%0A    /**%0D%0A     * Sum calculation of given indicate with filter. It equal to %22SELECT SUM(%7BindName%7D) FROM %7Bfact table of cube%7D%22.%0D%0A     * @param indName indicate name for sum%0D%0A     * @return result of sum operation%0D%0A     */%0D%0A    BigDecimal sum(String indName);%0D%0A    %0D%0A    /**%0D%0A     * Sum calculation of given indicate with filter. It equal to %22SELECT SUM(%7BindName%7D) FROM %7Bfact table of cube%7D WHERE %0D%0A     * %7Bdimension1 IN (a, b, c)%7D AND %7Bdimension2 IN (d, e, f)%7D%22.%0D%0A     * @param indName indicate name for sum%0D%0A     * @param filterDims filter dimensions%0D%0A     * @return result of sum operation%0D%0A     */%0D%0A    BigDecimal sum(String indName, Map%3CString, List%3CLong%3E%3E filterDims);%0D%0A    %0D%0A    /**%0D%0A     * Sum calculation of given indicate with filter and grouper. It equal to %22SELECT SUM(%7BindName%7D) FROM %7Bfact table of cube%7D WHERE %0D%0A     * %7Bdimension1 IN (a, b, c)%7D AND %7Bdimension2 IN (d, e, f)%7D group by %7Bdimension3%7D%22.%0D%0A     * @param indName indicate name for sum%0D%0A     * @param groupByDimName group by dimensions%0D%0A     * @param filterDims filter dimensions%0D%0A     * @return result of sum operation%0D%0A     */%0D%0A    Map%3CLong, BigDecimal%3E sum(String indName, String groupByDimName, Map%3CString, List%3CLong%3E%3E filterDims);%0D%0A%7D%0D%0A

Add Aggregations interface