Package mondrian.olap

Examples of mondrian.olap.Cell


    return axes;
  }

  public JROlapCell getCell(int[] axisPositions)
  {
    Cell dataCell = result.getCell(axisPositions);
    return new JRMondrianCell(dataCell);
  }
View Full Code Here


      return rowHeaders.getObject(rowIndex, columnIndex);
    }

    if (emptyAxisCase)
    {
      final Cell cell = resultSet.getCell(new int[0]);
      if (cell.isNull())
      {
        return null;
      }
      return cell.getValue();
    }

    if (rowHeaders.getRowCount() == 0)
    {

      final int[] key = new int[1];
      key[0] = (columnIndex);
      final Cell cell = resultSet.getCell(key);
      if (cell.isNull())
      {
        return null;
      }
      return cell.getValue();
    }

    final int[] key = new int[2];
    key[0] = (columnIndex - rowHeaders.getColumnCount());
    key[1] = rowIndex;
    final Cell cell = resultSet.getCell(key);
    if (cell.isNull())
    {
      return null;
    }
    return cell.getValue();
  }
View Full Code Here

      return EmptyDataAttributes.INSTANCE;
    }

    if (emptyAxisCase)
    {
      final Cell cell = resultSet.getCell(new int[0]);
      return new MDXMetaDataCellAttributes(EmptyDataAttributes.INSTANCE, cell);
    }

    if (rowHeaders.getRowCount() == 0)
    {

      final int[] key = new int[1];
      key[0] = (columnIndex);
      final Cell cell = resultSet.getCell(key);
      return new MDXMetaDataCellAttributes(EmptyDataAttributes.INSTANCE, cell);
    }

    final int[] key = new int[2];
    key[0] = (columnIndex - rowHeaders.getColumnCount());
    key[1] = rowIndex;
    final Cell c = resultSet.getCell(key);
    return new MDXMetaDataCellAttributes(EmptyDataAttributes.INSTANCE, c);
  }
View Full Code Here

      return rowHeaders.getObject(rowIndex, columnIndex);
    }

    if (emptyAxisCase)
    {
      final Cell cell = resultSet.getCell(new int[0]);
      if (cell.isNull())
      {
        return null;
      }
      return cell.getValue();
    }

    if (rowHeaders.getRowCount() == 0)
    {

      final int[] key = new int[1];
      key[0] = (columnIndex);
      final Cell cell = resultSet.getCell(key);
      if (cell.isNull())
      {
        return null;
      }
      return cell.getValue();
    }

    final int[] key = new int[2];
    key[0] = (columnIndex - rowHeaders.getColumnCount());
    key[1] = rowIndex;
    final Cell cell = resultSet.getCell(key);
    if (cell.isNull())
    {
      return null;
    }
    return cell.getValue();
  }
View Full Code Here

      return EmptyDataAttributes.INSTANCE;
    }

    if (emptyAxisCase)
    {
      final Cell cell = resultSet.getCell(new int[0]);
      return new MDXMetaDataCellAttributes(EmptyDataAttributes.INSTANCE, cell);
    }

    if (rowHeaders.getRowCount() == 0)
    {

      final int[] key = new int[1];
      key[0] = (columnIndex);
      final Cell cell = resultSet.getCell(key);
      return new MDXMetaDataCellAttributes(EmptyDataAttributes.INSTANCE, cell);
    }

    final int[] key = new int[2];
    key[0] = (columnIndex - rowHeaders.getColumnCount());
    key[1] = rowIndex;
    final Cell c = resultSet.getCell(key);
    return new MDXMetaDataCellAttributes(EmptyDataAttributes.INSTANCE, c);
  }
View Full Code Here

    }

    if (isMeasureColumn(columnIndex))
    {
      final int[] cellKey = computeCellKey(rowIndex, columnIndex);
      final Cell cell = resultSet.getCell(cellKey);
      if (cell.isNull())
      {
        return null;
      }
      return cell.getValue();
    }

    final int[] cellKey = computeCellKey(rowIndex, columnIndex);

    Member candidateMember = getCandidateMembers(columnIndex, cellKey);
View Full Code Here

    }

    if (isMeasureColumn(columnIndex))
    {
      final int[] cellKey = computeCellKey(rowIndex, columnIndex);
      final Cell cell = resultSet.getCell(cellKey);
      return new MDXMetaDataCellAttributes(EmptyDataAttributes.INSTANCE, cell);
    }

    final int[] cellKey = computeCellKey(rowIndex, columnIndex);
    Member contextMember = getCandidateMembers(columnIndex, cellKey);
View Full Code Here

    if (isMeasureColumn(columnIndex))
    {
      final int[] cellKey = computeCellKey(rowIndex);
      try
      {
        final Cell cell = resultSet.getCell(cellKey);
        if (cell.isNull())
        {
          return null;
        }
        return cell.getValue();
      }
      catch (NullPointerException pe)
      {
        pe.printStackTrace();
      }
View Full Code Here

    }

    if (isMeasureColumn(columnIndex))
    {
      final int[] cellKey = computeCellKey(rowIndex);
      final Cell cell = resultSet.getCell(cellKey);
      return new MDXMetaDataCellAttributes(EmptyDataAttributes.INSTANCE, cell);
    }

    final int[] cellKey = computeCellKey(rowIndex);
    Member contextMember = getCandidateMembers(columnIndex, cellKey);
View Full Code Here

            + "FROM [Store]");
        Axis rowAxis = result.getAxes()[0];
        assertTrue(rowAxis.getPositions().size() == 1);
        Axis colAxis = result.getAxes()[1];
        assertTrue(colAxis.getPositions().size() == 6);
        Cell cell = result.getCell(new int[]{0, 0});
        assertTrue(cell.isError());
        getTestContext().assertMatchesVerbose(
            Pattern.compile(
                "(?s).*Invalid value for inverse normal distribution: 1.4708.*"),
            cell.getValue().toString());
        cell = result.getCell(new int[]{0, 5});
        assertTrue(cell.isError());
        getTestContext().assertMatchesVerbose(
            Pattern.compile(
                "(?s).*Invalid value for inverse normal distribution: 1.4435.*"),
            cell.getValue().toString());
    }
View Full Code Here

TOP

Related Classes of mondrian.olap.Cell

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.