|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CellSet
Result of executing an OLAP Statement.
An Cell ordinals and coordinates There are two ways to identify a particular cell: ordinal and coordinates.
Suppose that there are The ordinal number of a cell whose tuple ordinals are
p axes, and each axis k
(k between 0 and p - 1) has
Uk positions.
There are U
= U0 * ... * Up - 1 cells in total.
Then:
ordinal is an integer between 0 and
U - 1.coordinates are a list of p integers,
indicating the cell's position on each axis.
Each integer is between 0 and Up-1.(S0, S1, ... Sp-1) is
Σi=0p-1 Si . Ei
where
E0 = 1
and
Ei = Πi=0p-1 Uk

| Field Summary |
|---|
| Fields inherited from interface java.sql.ResultSet |
|---|
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE |
| Method Summary | |
|---|---|
int |
coordinatesToOrdinal(List<Integer> coordinates)
Converts a list of cell coordinates to a cell ordinal. |
List<CellSetAxis> |
getAxes()
Retrieves a list of CellSetAxis objects containing the result. |
Cell |
getCell(int ordinal)
Returns the Cell at an ordinal. |
Cell |
getCell(List<Integer> coordinates)
Returns the Cell at a given set of coordinates. |
Cell |
getCell(Position... positions)
Returns the Cell at the intersection of a set of axis positions. |
CellSetAxis |
getFilterAxis()
Retrieves the CellSetAxis representing the filter axis. |
CellSetMetaData |
getMetaData()
Retrieves the description of this CellSet's axes
and cells. |
List<Integer> |
ordinalToCoordinates(int ordinal)
Converts a cell ordinal to a list of cell coordinates. |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Methods inherited from interface org.olap4j.OlapWrapper |
|---|
isWrapperFor, unwrap |
| Method Detail |
|---|
CellSetMetaData getMetaData()
throws OlapException
CellSet's axes
and cells.
getMetaData in interface ResultSetOlapException - if a database access error occurs
CellSet's axes
and cellsList<CellSetAxis> getAxes()
The list contains axes according to their ordinal: 0 is the columns axis, 1 the rows axis, and so forth.
CellSetAxis getFilterAxis()
This axis always has one row, and contains one member for each dimension not included in any other axis. Some of these dimensions may have been explicitly mentioned in the WHERE clause of the MDX statement; others dimensions are represented by their default member.
Cell getCell(List<Integer> coordinates)
IndexOutOfBoundsException - if coordinates are outside CellSet
boundscoordinates - List of 0-based coordinates of the cell
Cell getCell(int ordinal)
Equivalent to
getCell(ordinalToCoordinates(ordinal))
IndexOutOfBoundsException - if ordinal lies outside CellSet boundsordinal - 0-based ordinal of the cell
Cell getCell(Position... positions)
Equivalent to
getCell( Arrays.asList( positions[0].ordinal(), positions[1].ordinal() [, ...]))
IllegalArgumentException - if positions does not have the same
number of members as the cell set has axes
IndexOutOfBoundsException - if positions lie outside CellSet
boundspositions - Array of positions
List<Integer> ordinalToCoordinates(int ordinal)
ordinal - Cell ordinal
int coordinatesToOrdinal(List<Integer> coordinates)
coordinates - Cell coordinates
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||