Package org.olap4j

Examples of org.olap4j.Cell


    }

    if (isMeasureColumn(columnIndex))
    {
      final List<Integer> cellKey = computeCellKey(rowIndex, columnIndex);
      final Cell cell = resultSet.getCell(cellKey);
      return new MDXMetaDataCellAttributes(EmptyDataAttributes.INSTANCE, cell);
    }

    final List<Integer> cellKey = computeCellKey(rowIndex, columnIndex);
    Member contextMember = getCandidateMembers(columnIndex, cellKey);
View Full Code Here


      return rowHeaders.getObject(rowIndex, columnIndex);
    }

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

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

      final List<Integer> key = new ArrayList<Integer>(1);
      key.add(columnIndex);
      final Cell cell = resultSet.getCell(key);
      if (cell.isNull())
      {
        return null;
      }
      return cell.getValue();
    }

    final List<Integer> key = new ArrayList<Integer>(2);
    key.add(Integer.valueOf(columnIndex - rowHeaders.getColumnCount()));
    key.add(Integer.valueOf(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(0);
      return new MDXMetaDataCellAttributes(EmptyDataAttributes.INSTANCE, cell);
    }

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

      final List<Integer> key = new ArrayList<Integer>(1);
      key.add(columnIndex);
      final Cell cell = resultSet.getCell(key);
      return new MDXMetaDataCellAttributes(EmptyDataAttributes.INSTANCE, cell);
    }


    final List<Integer> key = new ArrayList<Integer>(2);
    key.add(Integer.valueOf(columnIndex - rowHeaders.getColumnCount()));
    key.add(Integer.valueOf(rowIndex));
    final Cell c = resultSet.getCell(key);
    return new MDXMetaDataCellAttributes(EmptyDataAttributes.INSTANCE, c);
  }
View Full Code Here

            metaData.getCellProperties().get("ACTION_TYPE");
        final Property drillthroughCountProperty =
            metaData.getCellProperties().get("DRILLTHROUGH_COUNT");

        // Cell [0, 0] is drillable
        final Cell cell0 = cellSet.getCell(0);
        final int actionType0 =
            (Integer) cell0.getPropertyValue(actionTypeProperty);
        assertEquals(0x100, actionType0); // MDACTION_TYPE_DRILLTHROUGH
        final int drill0 =
            (Integer) cell0.getPropertyValue(drillthroughCountProperty);
        assertEquals(24442, drill0);

        // Cell [0, 1] is not drillable
        final Cell cell1 = cellSet.getCell(1);
        final int actionType1 =
            (Integer) cell1.getPropertyValue(actionTypeProperty);
        assertEquals(0x0, actionType1);
        final int drill1 =
            (Integer) cell1.getPropertyValue(drillthroughCountProperty);
        assertEquals(-1, drill1);
    }
View Full Code Here

TOP

Related Classes of org.olap4j.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.