funk.java

来自「数据仓库展示程序」· Java 代码 · 共 39 行

JAVA
39
字号
/*
// $Id: //open/mondrian/src/main/mondrian/olap/fun/Funk.java#5 $
// (C) Copyright 2002-2005 Kana Software, Inc.
// This software is subject to the terms of the Common Public License
// Agreement, available at the following URL:
// http://www.opensource.org/licenses/cpl.html.
// (C) Copyright 2002-2005 Kana Software, Inc. and others.
// All Rights Reserved.
// You must accept the terms of that agreement to use this software.
//
// jhyde, 28 February, 2002
*/
package mondrian.olap.fun;

import mondrian.olap.Evaluator;
import mondrian.olap.Exp;

/**
 * A <code>Funk</code> is a code-fragment: it can be evaluated, given an
 * environment and a list of arguments. It is like a
 * {@link mondrian.olap.FunDef}, but not so self-aware.
 *
 * @author jhyde
 * @since 28 February, 2002
 * @version $Id: //open/mondrian/src/main/mondrian/olap/fun/Funk.java#5 $
 **/
interface Funk {
    /**
     * Evaluates this function with the given set of expressions. The
     * implementation will often evaluate the expressions first. For example,
     * <code>TopCount([Promotion Media].members, 2 + 3, [Measures].[Unit
     * Sales])</code> would evaluate the first and second arguments, but not
     * the third.
     **/
    Object evaluate(Evaluator evaluator, Exp[] args);
}

// End Funk.java

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?