当前位置: 首页>>代码示例>>Java>>正文


Java RolapStar.Column方法代码示例

本文整理汇总了Java中mondrian.rolap.RolapStar.Column方法的典型用法代码示例。如果您正苦于以下问题:Java RolapStar.Column方法的具体用法?Java RolapStar.Column怎么用?Java RolapStar.Column使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mondrian.rolap.RolapStar的用法示例。


在下文中一共展示了RolapStar.Column方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ListPredicate

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
protected ListPredicate(List<StarPredicate> predicateList) {
    columnBitKey = null;
    childrenHashMap = null;
    hashValue = 0;
    for (StarPredicate predicate : predicateList) {
        if (columnBitKey == null) {
            columnBitKey =
                predicate.getConstrainedColumnBitKey().copy();
        } else {
            columnBitKey =
                columnBitKey.or(predicate.getConstrainedColumnBitKey());
        }
        children.add(predicate);
        for (RolapStar.Column column
            : predicate.getConstrainedColumnList())
        {
            if (!columns.contains(column)) {
                columns.add(column);
            }
        }
    }
}
 
开发者ID:Twixer,项目名称:mondrian-3.1.5,代码行数:23,代码来源:ListPredicate.java

示例2: lookupInChildren

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
protected RolapStar.Column lookupInChildren(
    final RolapStar.Table table,
    final String factColumnName)
{
    // This can happen if we are looking at a collapsed dimension
    // table, and the collapsed dimension in question in the
    // fact table is a snowflake (not just a star), so we
    // must look deeper...
    for (RolapStar.Table child : table.getChildren()) {
        RolapStar.Column rc = child.lookupColumn(factColumnName);
        if (rc != null) {
            return rc;
        } else {
            rc = lookupInChildren(child, factColumnName);
            if (rc != null) {
                return rc;
            }
        }
    }
    return null;
}
 
开发者ID:Twixer,项目名称:mondrian-3.1.5,代码行数:22,代码来源:Recognizer.java

示例3: AbstractColumnPredicate

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
/**
 * Creates an AbstractColumnPredicate.
 *
 * @param constrainedColumn Constrained column
 */
protected AbstractColumnPredicate(RolapStar.Column constrainedColumn) {
    this.constrainedColumn = constrainedColumn;
    /*
     * Check if contraintedColumns are null.
     * (Example: FastBatchingCellReader.testAggregateDistinctCount5()).
     */
    if (constrainedColumn != null && constrainedColumn.getTable() != null) {
        constrainedColumnBitKey =
            BitKey.Factory.makeBitKey(
                constrainedColumn.getStar().getColumnCount());
        constrainedColumnBitKey.clear();
        constrainedColumnBitKey.set(constrainedColumn.getBitPosition());
    } else {
        constrainedColumnBitKey = null;
    }
}
 
开发者ID:Twixer,项目名称:mondrian-3.1.5,代码行数:22,代码来源:AbstractColumnPredicate.java

示例4: RangeColumnPredicate

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
/**
 * Creates a RangeColumnPredicate.
 *
 * @param column Constrained column
 * @param lowerInclusive Whether range includes the lower bound;
 *   must be false if not bounded below
 * @param lowerBound Lower bound, or null if not bounded below
 * @param upperInclusive Whether range includes the upper bound;
 *   must be false if not bounded above
 * @param upperBound Upper bound, or null if not bounded above
 */
public RangeColumnPredicate(
    RolapStar.Column column,
    boolean lowerInclusive,
    ValueColumnPredicate lowerBound,
    boolean upperInclusive,
    ValueColumnPredicate upperBound)
{
    super(column);
    assert lowerBound == null
        || lowerBound.getConstrainedColumn() == column;
    assert !(lowerBound == null && lowerInclusive);
    assert upperBound == null
        || upperBound.getConstrainedColumn() == column;
    assert !(upperBound == null && upperInclusive);
    this.lowerInclusive = lowerInclusive;
    this.lowerBound = lowerBound;
    this.upperInclusive = upperInclusive;
    this.upperBound = upperBound;
}
 
开发者ID:Twixer,项目名称:mondrian-3.1.5,代码行数:31,代码来源:RangeColumnPredicate.java

示例5: getColumn

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
public AggStar.Table.Column getColumn(final int i) {
    RolapStar.Column[] columns = segment0.getColumns();
    int bitPos = columns[i].getBitPosition();
    AggStar.Table.Column column = aggStar.lookupColumn(bitPos);

    // this should never happen
    if (column == null) {
        LOGGER.error("column null for bitPos=" + bitPos);
    }
    return column;
}
 
开发者ID:OSBI,项目名称:mondrian,代码行数:12,代码来源:AggQuerySpec.java

示例6: addGroupingSets

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
private void addGroupingSets(SqlQuery sqlQuery) {
    List<RolapStar.Column[]> groupingSetsColumns =
        groupingSetsList.getGroupingSetsColumns();
    for (RolapStar.Column[] groupingSetColumns : groupingSetsColumns) {
        ArrayList<String> groupingColumnsExpr = new ArrayList<String>();

        for (RolapStar.Column aColumnArr : groupingSetColumns) {
            groupingColumnsExpr.add(findColumnExpr(aColumnArr, sqlQuery));
        }
        sqlQuery.addGroupingSet(groupingColumnsExpr);
    }
}
 
开发者ID:OSBI,项目名称:mondrian,代码行数:13,代码来源:AggQuerySpec.java

示例7: includeInSelect

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
public boolean includeInSelect(RolapStar.Column column) {
    if (drillThroughColumns.size() == 0
        && drillThroughMeasures.size() == 0)
    {
        return true;
    }
    return drillThroughColumns.contains(column);
}
 
开发者ID:OSBI,项目名称:mondrian,代码行数:9,代码来源:DrillThroughCellRequest.java

示例8: AggGen

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
public AggGen(
    String cubeName,
    RolapStar star,
    RolapStar.Column[] columns)
{
    this.cubeName = cubeName;
    this.star = star;
    this.columns = columns;
    init();
}
 
开发者ID:OSBI,项目名称:mondrian,代码行数:11,代码来源:AggGen.java

示例9: getRolapStarColumnName

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
protected String getRolapStarColumnName(RolapStar.Column rColumn) {
    MondrianDef.Expression expr = rColumn.getExpression();
    if (expr instanceof MondrianDef.Column) {
        MondrianDef.Column cx = (MondrianDef.Column) expr;
        return cx.getColumnName();
    }
    return null;
}
 
开发者ID:OSBI,项目名称:mondrian,代码行数:9,代码来源:AggGen.java

示例10: computeColumnList

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
private List<RolapStar.Column> computeColumnList(
    RolapMember member,
    RolapCube baseCube)
{
    List<RolapStar.Column> columnList = new ArrayList<RolapStar.Column>();
    while (true) {
        RolapLevel level = member.getLevel();
        RolapStar.Column column = null;
        if (level instanceof RolapCubeLevel) {
            column = ((RolapCubeLevel)level)
                            .getBaseStarKeyColumn(baseCube);
        } else {
            (new Exception()).printStackTrace();
        }

        if (columnBitKey == null) {
            columnBitKey =
                BitKey.Factory.makeBitKey(
                        column.getStar().getColumnCount());
            columnBitKey.clear();
        }
        columnBitKey.set(column.getBitPosition());
        columnList.add(0, column);
        if (level.isUnique()) {
            return columnList;
        }
        member = member.getParentMember();
    }
}
 
开发者ID:Twixer,项目名称:mondrian-3.1.5,代码行数:30,代码来源:MemberTuplePredicate.java

示例11: cloneListWithColumn

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
protected static List<StarColumnPredicate> cloneListWithColumn(
    RolapStar.Column column,
    List<StarColumnPredicate> list)
{
    List<StarColumnPredicate> newList =
        new ArrayList<StarColumnPredicate>(list.size());
    for (StarColumnPredicate predicate : list) {
        newList.add(predicate.cloneWithColumn(column));
    }
    return newList;
}
 
开发者ID:Twixer,项目名称:mondrian-3.1.5,代码行数:12,代码来源:AbstractColumnPredicate.java

示例12: ListColumnPredicate

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
/**
 * Creates a ListColumnPredicate
 *
 * @param column Column being constrained
 * @param list List of child predicates
 */
public ListColumnPredicate(
    RolapStar.Column column,
    List<StarColumnPredicate> list)
{
    super(column);
    this.children = list;
    childrenHashMap = null;
    hashValue = 0;
}
 
开发者ID:Twixer,项目名称:mondrian-3.1.5,代码行数:16,代码来源:ListColumnPredicate.java

示例13: GroupingSet

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
public GroupingSet(
    Segment[] segments, BitKey levelBitKey, BitKey measureBitKey,
    Aggregation.Axis[] axes, RolapStar.Column[] columns)
{
    this.segments = segments;
    this.levelBitKey = levelBitKey;
    this.measureBitKey = measureBitKey;
    this.axes = axes;
    this.columns = columns;
}
 
开发者ID:Twixer,项目名称:mondrian-3.1.5,代码行数:11,代码来源:GroupingSet.java

示例14: getColumn

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
public AggStar.Table.Column getColumn(final int i) {
    RolapStar.Column[] columns = segments[0].aggregation.getColumns();
    int bitPos = columns[i].getBitPosition();
    AggStar.Table.Column column = aggStar.lookupColumn(bitPos);

    // this should never happen
    if (column == null) {
        LOGGER.error("column null for bitPos=" + bitPos);
    }
    return column;
}
 
开发者ID:Twixer,项目名称:mondrian-3.1.5,代码行数:12,代码来源:AggQuerySpec.java

示例15: computeDistinctColumnNames

import mondrian.rolap.RolapStar; //导入方法依赖的package包/类
private List<String> computeDistinctColumnNames() {
    final List<String> columnNames = new ArrayList<String>();
    final Set<String> columnNameSet = new HashSet<String>();

    final RolapStar.Column[] columns = getColumns();
    for (RolapStar.Column column : columns) {
        addColumnName(column, columnNames, columnNameSet);
    }

    addColumnName(request.getMeasure(), columnNames, columnNameSet);

    return columnNames;
}
 
开发者ID:Twixer,项目名称:mondrian-3.1.5,代码行数:14,代码来源:DrillThroughQuerySpec.java


注:本文中的mondrian.rolap.RolapStar.Column方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。