mondrianexceptionmemberfilter.java

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

JAVA
66
字号
/*
// $Id: //open/mondrian/src/main/mondrian/jolap/MondrianExceptionMemberFilter.java#4 $
// 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, Dec 24, 2002
*/
package mondrian.jolap;

import mondrian.olap.Exp;

import javax.olap.OLAPException;
import javax.olap.query.dimensionfilters.ExceptionMemberFilter;
import javax.olap.query.enumerations.OperatorType;

/**
 * Implementation of {@link ExceptionMemberFilter}.
 *
 * @author jhyde
 * @since Dec 24, 2002
 * @version $Id: //open/mondrian/src/main/mondrian/jolap/MondrianExceptionMemberFilter.java#4 $
 **/
class MondrianExceptionMemberFilter extends MondrianDataBasedMemberFilter
        implements ExceptionMemberFilter {
    private OperatorType op;
    private Object rhs;

    public MondrianExceptionMemberFilter(MondrianDimensionStepManager manager) {
        super(manager);
    }

    Exp convert(Exp exp) throws OLAPException {
        Exp newExp = _convert();
        return combine(exp, newExp);
    }

    private Exp _convert() {
        throw new UnsupportedOperationException(); // todo:
    }

    // object model methods

    public OperatorType getOp() throws OLAPException {
        return op;
    }

    public void setOp(OperatorType input) throws OLAPException {
        this.op = input;
    }

    public Object getRhs() throws OLAPException {
        return rhs;
    }

    public void setRhs(Object input) throws OLAPException {
        this.rhs = input;
    }

}

// End MondrianExceptionMemberFilter.java

⌨️ 快捷键说明

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