Examples of IntList


Examples of org.pentaho.reporting.engine.classic.core.util.IntList

    final Integer[] levels = levelList.getLevelsDescendingArray();
    final LevelStorageBackend[] levelData = new LevelStorageBackend[levels.length];
    final int expressionsCount = levelList.size();

    final int capacity = Math.min(20, expressionsCount);
    final IntList activeExpressions = new IntList(capacity);
    final IntList functions = new IntList(capacity);
    final IntList pageEventListeners = new IntList(capacity);

    for (int i = 0; i < levels.length; i++)
    {
      final int currentLevel = levels[i].intValue();
      final Integer[] data = (Integer[])
          levelList.getElementArrayForLevel(currentLevel, EMPTY_INTEGERARRAY);
      for (int x = 0; x < data.length; x++)
      {
        final Integer position = data[x];
        final Expression ex = expressions[position.intValue()];
        final int globalPosition = position.intValue();

        if (ex instanceof Function == false)
        {
          if (ex.getName() != null)
          {
            activeExpressions.add(globalPosition);
          }
          continue;
        }

        activeExpressions.add(globalPosition);
        functions.add(globalPosition);
        if (ex instanceof PageEventListener)
        {
          pageEventListeners.add(globalPosition);
        }
      }

      levelData[i] = new LevelStorageBackend(currentLevel,
          activeExpressions.toArray(),
          functions.toArray(), pageEventListeners.toArray());

      activeExpressions.clear();
      functions.clear();
      pageEventListeners.clear();
    }

    return levelData;
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.IntList

  private int currentGroupIndex;

  public DefaultGroupSizeRecorder()
  {
    counts = new HashMap<GroupKey, Integer>();
    groupCounts = new IntList(100);
    groupCounts.add(0);
    currentGroupIndex = -1;
    keys = new FastStack<GroupKey>();
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.IntList

  }

  public static IntList computeColumnToAxisMapping(final List<CellSetAxis> axes, final int[] axesMembers,
                                                   final int columnCount, final int startAxis)
  {
    IntList columnToAxisPosition = new IntList(columnCount);
    for (int axesIndex = axes.size() - 1; axesIndex >= startAxis; axesIndex -= 1)
    {
      int memberCntAxis = axesMembers[axesIndex];
      for (int x = 0; x < memberCntAxis; x += 1)
      {
        columnToAxisPosition.add(axesIndex);
      }
    }
    return columnToAxisPosition;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.