Examples of IntList


Examples of org.eigenbase.util.IntList

        }
        setFactorWeight(weight, leftFactor, rightFactor);
      } else {
        // multiple factor references -- set a weight for each
        // combination of factors referenced within the filter
        final IntList list = BitSets.toList(factorRefs);
        for (int outer : list) {
          for (int inner : list) {
            if (outer != inner) {
              setFactorWeight(1, outer, inner);
            }
View Full Code Here

Examples of org.jfree.layouting.util.IntList

    if (job == null)
    {
      throw new NullPointerException();
    }
    stateList = new PageStateList(this);
    physicalMapping = new IntList(40);
    logicalMapping = new IntList(20);

    final ReportContext context = createReportContext(job, target);
    final LayoutControllerFactory layoutFactory =
        context.getLayoutControllerFactory();
View Full Code Here

Examples of org.napile.primitive.lists.IntList

   */
  @Override
  protected void runImpl()
  {
    int playerSize = 0;
    IntList deleteChars = Containers.EMPTY_INT_LIST;
    Connection con = null;
    PreparedStatement statement = null;
    ResultSet rset = null;
    try
    {
      con = DatabaseFactory.getInstance().getConnection();
      statement = con.prepareStatement("SELECT deletetime FROM characters WHERE account_name=?");
      statement.setString(1, _account);
      rset = statement.executeQuery();
      while (rset.next())
      {
        playerSize++;
        int d = rset.getInt("deletetime");
        if (d > 0)
        {
          if (deleteChars.isEmpty())
          {
            deleteChars = new ArrayIntList(3);
          }
          deleteChars.add(d + (Config.DELETE_DAYS * 24 * 60 * 60));
        }
      }
    }
    catch (Exception e)
    {
      _log.error("GetAccountInfo:runImpl():" + e, e);
    }
    finally
    {
      DbUtils.closeQuietly(con, statement, rset);
    }
    LoginServerCommunication.getInstance().sendPacket(new SetAccountInfo(_account, playerSize, deleteChars.toArray()));
  }
View Full Code Here

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

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

    final int capacity = Math.min(20, expressionsCount);
    final IntList expressionPositions = new IntList(capacity);
    final IntList activeExpressions = new IntList(capacity);
    final IntList functions = new IntList(capacity);
    final IntList pageEventListeners = new IntList(capacity);
    final IntList prepareEventListeners = new IntList(capacity);
    final boolean prepareEventListener = false;

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

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

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

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

      expressionPositions.clear();
      activeExpressions.clear();
      functions.clear();
      pageEventListeners.clear();
      prepareEventListeners.clear();

      this.prepareEventListener = prepareEventListener;
    }
  }
View Full Code Here

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

        }
        else
        {
          stateList = new DefaultPageStateList(this);
        }
        physicalMapping = new IntList(40);
        logicalMapping = new IntList(20);
        AbstractReportProcessor.logger.debug("Pagination started ..");
        state = processPaginationLevel(state, stateList, maxRows);
      }
      else
      {
View Full Code Here

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

  }

  public static IntList computeColumnToAxisMapping(final Axis[] axes, final int[] axesMembers,
                                                   final int columnCount, final int startAxis)
  {
    IntList columnToAxisPosition = new IntList(columnCount);
    for (int axesIndex = axes.length - 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

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

            }
            else
            {
              stateList = new DefaultPageStateList(this);
            }
            physicalMapping = new IntList(40);
            logicalMapping = new IntList(20);
            AbstractReportProcessor.logger.debug("Pagination started ..");
            state = processPaginationLevel(state, stateList, maxRows);
          }
          else
          {
View Full Code Here

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

    if (currentTable.getSectionRenderBox() != box)
    {
      return;
    }

    final IntList rowSpans = currentTable.rowSpans;
    int missingRows = 0;
    for (int i = 0; i < rowSpans.size(); i++)
    {
      final int value = rowSpans.get(i);
      if (missingRows < value)
      {
        missingRows = value;
      }
    }
View Full Code Here

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

    if (currentTable.getSectionRenderBox() == null)
    {
      return;
    }

    final IntList rowSpans = currentTable.rowSpans;
    int maxRowSpan = 0;
    for (int i = 0; i < rowSpans.size(); i++)
    {
      final int value = rowSpans.get(i);
      maxRowSpan = Math.max(maxRowSpan, value);
    }

    for (int i = 0; i < rowSpans.size(); i++)
    {
      final int value = rowSpans.get(i);
      rowSpans.set(i, Math.max(0, value - 1));
    }
  }
View Full Code Here

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

    public TableInfoStructure(final TableRenderBox table, final TableInfoStructure parent)
    {
      this.table = table;
      this.parent = parent;
      this.columnModel = table.getColumnModel();
      this.rowSpans = new IntList(10);
    }
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.