本文整理汇总了Java中org.olap4j.metadata.Member.isAll方法的典型用法代码示例。如果您正苦于以下问题:Java Member.isAll方法的具体用法?Java Member.isAll怎么用?Java Member.isAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.olap4j.metadata.Member
的用法示例。
在下文中一共展示了Member.isAll方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: computeAxisInfo
import org.olap4j.metadata.Member; //导入方法依赖的package包/类
/**
* Computes a description of an axis.
*
* @param axis
* Axis
* @return Description of axis
*/
private AxisInfo computeAxisInfo(final CellSetAxis axis) {
if (axis == null) {
return new AxisInfo(0);
}
final AxisInfo axisInfo = new AxisInfo(axis.getAxisMetaData().getHierarchies().size());
int p = -1;
for (final Position position : axis.getPositions()) {
++p;
int k = -1;
for (final Member member : position.getMembers()) {
++k;
final AxisOrdinalInfo axisOrdinalInfo = axisInfo.ordinalInfos.get(k);
final int topDepth = member.isAll() ? member.getDepth() : member.getHierarchy().hasAll() ? 1 : 0;
if (axisOrdinalInfo.minDepth > topDepth || p == 0) {
axisOrdinalInfo.minDepth = topDepth;
}
axisOrdinalInfo.maxDepth = Math.max(axisOrdinalInfo.maxDepth, member.getDepth());
}
}
return axisInfo;
}
示例2: computeAxisInfo
import org.olap4j.metadata.Member; //导入方法依赖的package包/类
/**
* Computes a description of an axis.
*
* @param axis
* Axis
* @return Description of axis
*/
private AxisInfo computeAxisInfo( final CellSetAxis axis ) {
if ( axis == null ) {
return new AxisInfo( 0 );
}
final AxisInfo axisInfo = new AxisInfo( axis.getAxisMetaData().getHierarchies().size() );
int p = -1;
for ( final Position position : axis.getPositions() ) {
++p;
int k = -1;
for ( final Member member : position.getMembers() ) {
++k;
final AxisOrdinalInfo axisOrdinalInfo = axisInfo.ordinalInfos.get( k );
final int topDepth = member.isAll() ? member.getDepth() : member.getHierarchy().hasAll() ? 1 : 0;
if ( axisOrdinalInfo.minDepth > topDepth || p == 0 ) {
axisOrdinalInfo.minDepth = topDepth;
}
axisOrdinalInfo.maxDepth = Math.max( axisOrdinalInfo.maxDepth, member.getDepth() );
}
}
return axisInfo;
}