|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
@SASScope(value="ALL") public interface TupleElementInterface
An interface representing a tuple element in a multidimensional result set.
The tuple element is the building block of the metadata for the result set. There are a set of tuple elements associated with each tuple, and each of these tuple elements contains information that is essential for rendering a multidimensional result set. The most basic piece is the label, which can be retrieved with the getLabel() method. There are also properties available that indicate whether the element is drilled down or whether it has the same parent as the corresponding element on the previous tuple. These properties provide hints that may be used when determining how to render the result set or what actions may be appropriate for a particular element. The minimum and maximum coordinates are also provided as hints for rendering the results. The same tuple element may appear on contiguous tuples. These coordinates indicate the minimum and maximum axis coordinates on which this tuple element is present.
This interface also provides a hook into the cube metadata. It is helpful to note that there is a distinction between result set metadata and the metadata which defines a cube. Some of the information in this interface can be used in a Filter which can be applied to an instance of the MetadataInterface. The MemberInterface is an element of the cube metadata, and the Filter can be used to returned instances of the MemberInterface. The documentation for a TupleElementInterface implementation should indicate which basic member information is readily available and which detailed information may be unavailable or inefficient to retrieve.
AxisInterface,
ResultSetMetadataInterface,
TupleInterface,
MemberInterface| Method Summary | |
|---|---|
abstract int |
getChildCount()
Returns the number of children for this member. |
abstract java.lang.String |
getFormat()
Get the Format associated with this element if it is a measure |
abstract java.lang.String |
getLabel()
Returns the label for the tuple element. |
abstract int |
getLevelDepth()
Returns the level depth associated with this tuple element. |
abstract int |
getMaximumCoordinate()
Returns the largest axis coordinate spanned by the label. |
abstract int |
getMinimumCoordinate()
Returns the smallest axis coordinate spanned by the label. |
abstract java.lang.String |
getName()
Returns the name for the tuple element. |
abstract java.util.Map |
getProperties()
Returns additional properties that were specified for this element |
abstract int |
getSpan()
Returns the number indicating the row/column span for this element. |
abstract int |
getSpanDepth()
Return a value indicating the depth at which the element be position in a given span value. |
abstract TupleInterface |
getTuple()
Returns the parent tuple for this tuple element. |
abstract int |
getTupleElementIndex()
Returns the element index. |
abstract com.sas.storage.olap.TupleElementType |
getType()
Get the type of this tuple element, supported types are Measures, totals, subtotals, and unspecified. |
abstract java.lang.String |
getUniqueLevelName()
Returns the unique level name associated with this tuple element. |
abstract boolean |
isContextual()
Returns whether this tuple element is part of the basic ResultSet, or whether it has been added for the purpose of providing additional context for the user. |
abstract boolean |
isContinued()
Returns whether this member's parent is the same as the parent of the immediately preceding member. |
abstract boolean |
isDrilledDown()
Returns whether this member is drilled down. |
abstract void |
setMaximumCoordinate(int maximumCoordinate)
Sets the largest axis coordinate spanned by the label. |
abstract void |
setMinimumCoordinate(int minimumCoordinate)
Sets the smallest axis coordinate spanned by the label. |
abstract void |
setSpan(int span)
Sets the number indicating the row/column span for this element. |
abstract void |
setSpanDepth(int depth)
Sets the number indicating the depth of the lement in to span for this element. |
| Method Detail |
|---|
TupleInterface getTuple()
throws OLAPException
OLAPException - if a database error occurs
int getTupleElementIndex()
throws OLAPException
OLAPException
java.lang.String getLabel()
throws OLAPException
OLAPException - if a database error occurs
java.lang.String getName()
throws OLAPException
OLAPException - if a database error occurs
java.lang.String getUniqueLevelName()
throws OLAPException
OLAPException - if a database error occurs
boolean isDrilledDown()
throws OLAPException
OLAPException - if a database error occurs
boolean isContinued()
throws OLAPException
OLAPException - if a database error occurs
boolean isContextual()
throws OLAPException
OLAPException
int getLevelDepth()
throws OLAPException
OLAPException - if a database error occurs
int getChildCount()
throws OLAPException
OLAPException - if a database error occurs
java.util.Map getProperties()
throws OLAPException
OLAPException - if a database error occurs
int getMinimumCoordinate()
throws OLAPException
getMinimumCoordinate() will equal
getMaximumCoordinate().
OLAPException - if a database error occursgetMaximumCoordinate()
int getMaximumCoordinate()
throws OLAPException
getMinimumCoordinate() will equal
getMaximumCoordinate().
OLAPException - if a database error occursgetMinimumCoordinate()
int getSpan()
throws OLAPException
OLAPException
int getSpanDepth()
throws OLAPException
OLAPException
java.lang.String getFormat()
throws OLAPException
OLAPException
void setMinimumCoordinate(int minimumCoordinate)
throws OLAPException
A - zero-based integer that identifies a point along the axis.
OLAPException - if a database error occurssetMaximumCoordinate(int)
void setMaximumCoordinate(int maximumCoordinate)
throws OLAPException
A - zero-based integer that identifies a point along the axis.
OLAPException - if a database error occurssetMinimumCoordinate(int)
com.sas.storage.olap.TupleElementType getType()
throws OLAPException
TupleElementType.TOTAL, TupleElementType.SUBTOTAL,
TupleElementType.MEASURE, TupleElementType.UNSPECIFIED
OLAPException
void setSpan(int span)
throws OLAPException
span - value of this element. A 1 based integer that indicates
how many rows/column to span.
OLAPException
void setSpanDepth(int depth)
throws OLAPException
span - depth value of this element. A 1 based integer that indicates
how deep into the span to position.
OLAPException
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||