|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResultSetMetadataInterface
An interface that defines the structure and contents of a ResultSet's metadata. The metadata that is available from the ResultSetMetadataInterface is specific to the ResultSet, and it is not the same as the metadata defining a Cube. Metadata for a Cube is a hierarchical set of entities (Dimensions, Hierarchies, Levels, Members) that define how the underlying data is stored. The result set metadata, however, is intended to define the structure and shape of the results. The topmost level of metadata is represented by the AxisInterface, and this information is directly available from the result set via the getAxes() method. A typical query contains two axes, although queries can contain any number of axes. More detailed metadata information can be acquired through the getTuples and getTupleElements methods. The methods are defined in two places. Both are defined directly on the ResultSetMetadataInterface, and they are also available on the AxisInterface and TupleInterface, respectively. Also, if necessary, there are hooks provided in the result set metadata that can provide Cube metadata for Dimensions (via the axes) and Members (via the TupleElements) that are projected onto the result set's axes.
AxisInterface
,
ResultSetInterface
,
TupleInterface
,
TupleElementInterface
Method Summary | |
---|---|
AxisInterface[] |
getAxes(int index,
int count)
Returns the axes associated with this ResultSet. |
AxisInterface |
getAxis(int index)
Returns the axis specified at the given index in the resultset. |
TupleElementInterface[] |
getElements(int axisNumber,
int tupleCoordinate,
int index,
int count)
Returns an array of tuple elements. |
ResultSetInterface |
getResultSet()
Returns the ResultSet that is defined by this metadata. |
TupleInterface[] |
getTuples(int axisNumber,
int index,
int count)
Returns the tuples associated with a given axis. |
Method Detail |
---|
ResultSetInterface getResultSet() throws OLAPException
OLAPException
- if a database error occursAxisInterface[] getAxes(int index, int count) throws OLAPException
AxisInterface.COLUMNS_AXIS
COLUMNS_AXIS axis,
followed by AxisInterface.ROWS_AXIS
ROWS_AXIS, then PAGESAXISAxisInterface.PAGES_AXIS
, etc.
Each axis is non-null, that is no axis is skipped. It's not possible to have a PAGES_AXIS axis
without a COLUMNS_AXIS and ROWS_AXIS axis.
index
- A zero-based indexcount
- The number of axes to return where -1 indicates all remaing axes.
OLAPException
- if a database error occursAxisInterface getAxis(int index) throws OLAPException
AxisInterface.COLUMNS_AXIS
COLUMNS_AXIS axis,
followed by AxisInterface.ROWS_AXIS
ROWS_AXIS, then
PAGES_AXISAxisInterface.PAGES_AXIS
, etc.
axisNumber
- index
- zero based index or axis number of the axis
OLAPException
TupleInterface[] getTuples(int axisNumber, int index, int count) throws OLAPException
axisNumber
- A zero-based axis numberindex
- A zero-based axis coordinate index (0 to getTupleCount()-1).count
- The number of tuples to return where -1 indicates all remaining tuples.
OLAPException
- if a database error occursTupleElementInterface[] getElements(int axisNumber, int tupleCoordinate, int index, int count) throws OLAPException
axisNumber
- A zero-based axis numbertupleCoordinate
- A zero-based coordinate which identifies the tuple along a given axisindex
- A zero-based tuple element index (0 to Tuple.getTupleDepth()-1).count
- The number of tuples to return where -1 mean all remaining tuple elements..
OLAPException
- if a database error occurs
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |