mondriandimensioncursor.java
来自「数据仓库展示程序」· Java 代码 · 共 78 行
JAVA
78 行
/*
// $Id: //open/mondrian/src/main/mondrian/jolap/MondrianDimensionCursor.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.Axis;
import mondrian.olap.Position;
import javax.olap.OLAPException;
import javax.olap.cursor.DimensionCursor;
import javax.olap.cursor.EdgeCursor;
import javax.olap.query.querycoremodel.DimensionStepManager;
/**
* Implementation of {@link DimensionCursor}.
*
* @author jhyde
* @since Dec 24, 2002
* @version $Id: //open/mondrian/src/main/mondrian/jolap/MondrianDimensionCursor.java#4 $
**/
class MondrianDimensionCursor extends CursorSupport implements DimensionCursor {
private MondrianEdgeCursor edgeCursor;
public MondrianDimensionCursor(final MondrianEdgeCursor edgeCursor, final Axis axis, final int axisOffset) {
super(edgeCursor.navigator,
new Accessor() {
public Object getObject(int i) throws OLAPException {
int positionIndex = (int) edgeCursor.navigator.getPosition();
final Position position = axis.positions[positionIndex];
return position.members[axisOffset];
}
});
this.edgeCursor = edgeCursor;
}
public long getEdgeStart() throws OLAPException {
throw new UnsupportedOperationException();
}
public void setEdgeStart(long input) throws OLAPException {
throw new UnsupportedOperationException();
}
public long getEdgeEnd() throws OLAPException {
throw new UnsupportedOperationException();
}
public void setEdgeEnd(long input) throws OLAPException {
throw new UnsupportedOperationException();
}
public void setEdgeCursor(EdgeCursor input) throws OLAPException {
this.edgeCursor = (MondrianEdgeCursor) input;
}
public EdgeCursor getEdgeCursor() throws OLAPException {
return edgeCursor;
}
public void setCurrentDimensionStepManager(DimensionStepManager input) throws OLAPException {
throw new UnsupportedOperationException();
}
public DimensionStepManager getCurrentDimensionStepManager() throws OLAPException {
throw new UnsupportedOperationException();
}
}
// End MondrianDimensionCursor.java
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?