|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AxisInterface
An interface representing an axis on a multidimensional result set.
The axis is the root of metadata information for the multidimensional result set. Each result set contains n axes that define the metadata in more detail. The two main components of an axis are the dimensions and the tuples. The dimensions contained on the axis are said to be projected onto the axis. A tuple is the element that combines members from each dimension that is projected onto the axis. Take the following example.
A user may want to know the annual sales for all products sold in the United States and Canada. One way to model these results is to project the Time, Measures, and Products dimensions onto the columns axis and the Geography dimension onto the rows axis. Not all members in a dimension need to be present on the axis in order for that dimension to be projected onto the axis. Sales is just one member of the Measures dimension. Likewise, we may only wish to look at data for Canada and the United States, while excluding data for Germany. Nevertheless, the Geography dimension is still part of the axis. In this example, the columns axis might contain the following set of tuples {(1999,Sales,Chairs), (1999,Sales,Desks), (2000,Sales,Chairs), (2000,Sales,Desks)}.
It is helpful to note that there is a distinction between result set metadata and the metadata which defines a cube. While the axis is an element of the result set metadata, certain cube metadata elements appear throughout the result set metadata. In this case, the unique dimension names contained on an axis are hooks to the cube's metadata. The unique dimension name can be used in a Filter that is applied to an instance of the MetadataInterface. In some cases where a connection to the metadata does not exist the information about the dimension may or may not exist. Also, it is worth noting that there may be some performance implications in obtaining detailed Dimension metadata in cases where the connection does exist.
ResultSetMetadataInterface
,
TupleInterface
Field Summary | |
---|---|
static int |
CACHE_COUNT
Represents the beginning index of the tuples in the cache |
static int |
CHAPTERS_AXIS
Represents the Chapters Axis, which is the fifth axis |
static int |
COLUMNS_AXIS
Represents the Columns Axis, which is the first axis |
static int |
PAGES_AXIS
Represents the Pages Axis, which is the third axis |
static int |
ROWS_AXIS
Represents the Rows Axis, which is the second axis |
static int |
SECTIONS_AXIS
Represents the Secions Axis, which is the fourth axis |
static int |
SLICERS_AXIS
Represents the Slicers Axis, which is the filter axis |
static int |
START_CACHE_INDEX
Represents the beginning index of the tuples in the cache |
Method Summary | |
---|---|
java.lang.String[] |
getAxisHeaders()
Return an array of header labels for the axis. |
int |
getAxisNumber()
Returns the axis number (COLUMNS, ROWS, PAGES, etc.) |
java.lang.String[] |
getDimensionNames()
Returns the dimension names for the dimensions projected on the axis. |
java.lang.String[] |
getHierarchyNames()
Return the heirarchy names belonging to this axis |
int |
getMaximumTupleDepth()
Return the base number of elements associated with any tuple on the axis. |
ResultSetMetadataInterface |
getResultSetMetadata()
Returns the ResultSetMetadata that contains this axis. |
TupleInterface |
getTuple(int index)
Returns the tuple at the given index, associated with the axis |
int |
getTupleCount()
Returns the number of tuples associated with the axis |
TupleInterface[] |
getTuples(int index,
int count)
Returns the tuples associated with the axis |
java.lang.String[] |
getUniqueLevelNames()
Retrun an array of unique Level names that are on the axis. |
Field Detail |
---|
static final int COLUMNS_AXIS
static final int ROWS_AXIS
static final int PAGES_AXIS
static final int SECTIONS_AXIS
static final int CHAPTERS_AXIS
static final int SLICERS_AXIS
static final int START_CACHE_INDEX
static final int CACHE_COUNT
Method Detail |
---|
ResultSetMetadataInterface getResultSetMetadata() throws OLAPException
OLAPException
- if a database error occursjava.lang.String[] getDimensionNames() throws OLAPException
OLAPException
- if a database error occursTupleInterface[] getTuples(int index, int count) throws OLAPException
index
- A zero-based axis coordinate index (0 to getTupleCount()-1).count
- The number of tuples to return where -1 mean all remaining tuples.
OLAPException
- if a database error occursTupleInterface getTuple(int index) throws OLAPException
index
- A zero-based axis coordinate index (0 to getTupleCount()-1).
OLAPException
- if a database error occursint getTupleCount() throws OLAPException
OLAPException
- if a database error occursint getMaximumTupleDepth() throws OLAPException
OLAPException
- if a database error occursjava.lang.String[] getAxisHeaders() throws OLAPException
OLAPException
- if a database error occursjava.lang.String[] getUniqueLevelNames() throws OLAPException
OLAPException
java.lang.String[] getHierarchyNames() throws OLAPException
OLAPException
int getAxisNumber() throws OLAPException
OLAPException
- if a database error occurs
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |