Package mondrian.olap

Examples of mondrian.olap.Position


    tuples = new JRMondrianTuple[positions.size()];
   
    int idx = 0;
    for (Iterator it = positions.iterator(); it.hasNext(); ++idx)
    {
      Position position = (Position) it.next();
      tuples[idx] = new JRMondrianTuple(position, factory);
    }
   
    hierarchies = new JRMondrianHierarchy[axisHierarchies.length];
    for (int i = 0; i < axisHierarchies.length; i++)
View Full Code Here


    try
    {
      final List<Position> positionList = result.getAxes()[0].getPositions();
      for (int i = 0; i < positionList.size(); i++)
      {
        final Position position = positionList.get(i);
        for (int j = 0; j < position.size(); j++)
        {
          final Member member = position.get(j);
          if (parameter.equals(MondrianUtil.getUniqueMemberName(member)))
          {
            if (memberByUniqueId == null)
            {
              memberByUniqueId = member;
View Full Code Here

    try
    {
      final List<Position> positionList = resultDirect.getAxes()[0].getPositions();
      for (int i = 0; i < positionList.size(); i++)
      {
        final Position position = positionList.get(i);
        for (int j = 0; j < position.size(); j++)
        {
          final Member member = position.get(j);

          // If the parameter starts with '[', we'll assume we have the full
          // member specification specification. Otherwise, keep the funky lookup
          // route. We do check whether we get a second member (heck, should not
          // happen, but I've seen pigs fly already).
View Full Code Here

  {
    // Flatten out the column headers into one column-name
    final Axis[] axes = this.resultSet.getAxes();
    final Axis axis = axes[AXIS_ROW];
    final List<Position> positions = axis.getPositions();
    final Position firstPosition = positions.get(0);
    if (columnNumber < firstPosition.size())
    {
      final Member member = firstPosition.get(columnNumber);
      return member.getHierarchy().getName();
    }
    else
    {
      final Member member = firstPosition.get(firstPosition.size() - 1);
      return member.getHierarchy().getName() + '{' + columnNumber + '}';
    }
  }
View Full Code Here

    final List<Position> positions = axis.getPositions();
    final int colCount = positions.size();
    final GenericObjectTable result = new GenericObjectTable(20, Math.max(1, colCount));
    for (int c = 0; c < colCount; c++)
    {
      final Position position = positions.get(c);
      Member member = null;
      final int rowCount = position.size();
      for (int r = 0; r < rowCount; r++)
      {
        member = position.get(r);
        if (member != null)
        {
          result.setObject(r, c, member.getName());
        }
      }
View Full Code Here

    final int rowCount = positions.size();
    final GenericObjectTable result = new GenericObjectTable(Math.max(1, rowCount), 5);

    for (int r = 0; r < rowCount; r++)
    {
      final Position position = positions.get(r);
      Member member = null;
      final int colCount = position.size();
      for (int c = 0; c < colCount; c++)
      {
        member = position.get(c);
        result.setObject(r, c, member.getName());
      }
      if (member != null)
      {
        result.setObject(r, colCount, member.getHierarchy().getName());
View Full Code Here

        new SortedMemberAddingStrategy(positions) :
        new ResultSetOrderMemberAddingStrategy();

    for (int positionsIndex = 0; positionsIndex < positions.size(); positionsIndex++)
    {
      final Position position = positions.get(positionsIndex);
      for (int positionIndex = 0; positionIndex < position.size(); positionIndex++)
      {
        Member m = position.get(positionIndex);
        computeDeepColumnNames(m, strategy);
      }
    }

    return strategy.values().size();
View Full Code Here

          new SortedMemberAddingStrategy(positions) :
          new ResultSetOrderMemberAddingStrategy();

      for (int positionsIndex = 0; positionsIndex < positions.size(); positionsIndex++)
      {
        final Position position = positions.get(positionsIndex);
        for (int positionIndex = 0; positionIndex < position.size(); positionIndex++)
        {
          Member m = position.get(positionIndex);
          computeDeepColumnNames(m, strategy);
        }
      }

      Collection<Member> columnNamesSet = strategy.values();
View Full Code Here

  {
    // Flatten out the column headers into one column-name
    final Axis[] axes = this.resultSet.getAxes();
    final Axis axis = axes[AXIS_ROW];
    final List<Position> positions = axis.getPositions();
    final Position firstPosition = positions.get(0);
    if (columnNumber < firstPosition.size())
    {
      final Member member = firstPosition.get(columnNumber);
      return member.getHierarchy().getName();
    }
    else
    {
      final Member member = firstPosition.get(firstPosition.size() - 1);
      return member.getHierarchy().getName() + '{' + columnNumber + '}';
    }
  }
View Full Code Here

  private Member computeMeasureName(final Result resultSet)
  {
    final List<Position> positionList = resultSet.getSlicerAxis().getPositions();
    for (int i = 0; i < positionList.size(); i++)
    {
      final Position position = positionList.get(i);
      for (int positionIndex = 0; positionIndex < position.size(); positionIndex++)
      {

        Member m = position.get(positionIndex);
        while (m != null)
        {
          if (m.isMeasure())
          {
            return m;
View Full Code Here

TOP

Related Classes of mondrian.olap.Position

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.