|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.storage.olap.embedded.TupleElement
@SASScope(value="ALL") public class TupleElement
This implementation is designed for the simple definition of tuple elements in a multidimensional ResultSet. The tuple elements are stored in memory within the model
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 set with the setLabel() method.
Tuple,
| Constructor Summary | |
|---|---|
TupleElement()
|
|
TupleElement(java.lang.String name)
Constructor that takes a unique name for this tuple element |
|
TupleElement(TupleElementInterface tupleElement)
|
|
| Method Summary | |
|---|---|
int |
getChildCount()
Returns the number of children for this member. |
java.lang.String |
getFormat()
This method will always return null for now. |
java.lang.String |
getLabel()
Return the label for the tuple element. |
int |
getLevelDepth()
Return the number of levels associated with this tupleElement. |
int |
getMaximumCoordinate()
Returns the largest axis coordinate spanned by the label. |
int |
getMinimumCoordinate()
Returns the smallest axis coordinate spanned by the label. |
java.lang.String |
getName()
Returns a unique name for the tuple element. |
java.util.Map |
getProperties()
Returns additional properties that were specified for this element |
int |
getSpan()
Return the span for this tuple element |
int |
getSpanDepth()
Get the span depth of this tupleelement. |
TupleInterface |
getTuple()
Return the parent tuple for this tuple element |
int |
getTupleElementIndex()
Return unique index of this tuple element |
com.sas.storage.olap.TupleElementType |
getType()
Get the type of this tupleelement. |
java.lang.String |
getUniqueLevelName()
Return the unique level name that this element is associated with |
boolean |
isContextual()
This method indicates whether this tuple element is part of the basic result set or added for additional info. |
boolean |
isContinued()
Returns whether this member's parent is the same as the parent of the immediately preceding member. |
boolean |
isDrilledDown()
Returns whether this member is drilled down. |
void |
setChildCount(int childCount)
Sets the number of children for this member. |
void |
setContextual(boolean isContextual)
Set whether this tuple is part of the basic result set |
void |
setContinued(boolean isContinued)
Sets whether this member's parent is the same as the parent of the immediately preceding member. |
void |
setDrilledDown(boolean isDrilledDown)
Sets whether this member is drilled down. |
void |
setLabel(java.lang.String label)
Set the label for the tuple element. |
void |
setLevelDepth(int levelDepth)
Set the levelDepth for this tuple element. |
void |
setMaximumCoordinate(int maximumCoordinate)
Sets the largest axis coordinate spanned by the label. |
void |
setMinimumCoordinate(int minimumCoordinate)
Sets the smallest axis coordinate spanned by the label. |
void |
setName(java.lang.String name)
Sets the unique name for the tuple element. |
void |
setProperties(java.util.Map properties)
Sets additional properties that were specified for this element |
void |
setSpan(int span)
Set the span value of this element |
void |
setSpanDepth(int depth)
Set the spanDepth for this tuple element. |
void |
setTuple(TupleInterface tuple)
Set the parent tuple of this tuple element |
void |
setType(com.sas.storage.olap.TupleElementType elementType)
Set the type of this element. |
void |
setUniqueLevelName(java.lang.String uniqueLevelName)
Set unique level name for this element |
java.lang.String |
toString()
Returns the label of this tuple element |
| Constructor Detail |
|---|
public TupleElement()
public TupleElement(java.lang.String name)
name - tuple element name.
public TupleElement(TupleElementInterface tupleElement)
throws OLAPException
OLAPException| Method Detail |
|---|
public void setType(com.sas.storage.olap.TupleElementType elementType)
throws OLAPException
elementType - of this element. Currently supported types are
TupleElementType.MEASURE, TupleElementType.TOTAL,
TupleElementType.SUBTOTAL, TupleElementType.UNSPECIFIED.
OLAPException
public com.sas.storage.olap.TupleElementType getType()
throws OLAPException
getType in interface TupleElementInterfaceOLAPException
public void setLabel(java.lang.String label)
throws OLAPException
label - The label for the tuple element.
OLAPException - if the label cannot be set
public java.lang.String getLabel()
throws OLAPException
getLabel in interface TupleElementInterfaceOLAPException - if cannot get the label
public void setName(java.lang.String name)
throws OLAPException
name - The unique name for the tuple element.
OLAPException - if name cannot be setpublic java.lang.String getName()
getName in interface TupleElementInterfaceOLAPException - if a name cannot be returned
public java.lang.String getUniqueLevelName()
throws OLAPException
getUniqueLevelName in interface TupleElementInterfaceOLAPException
public void setUniqueLevelName(java.lang.String uniqueLevelName)
throws OLAPException
The - level name that this element is associated with.
OLAPException
public void setDrilledDown(boolean isDrilledDown)
throws OLAPException
drilledDown - Indicates whether this member is drilled down. That is, at least one
child of this member appears on the axis, immediately following the member.
OLAPException
public boolean isDrilledDown()
throws OLAPException
isDrilledDown in interface TupleElementInterfaceOLAPException
public void setContinued(boolean isContinued)
throws OLAPException
sameParent - Indicates whether this member's parent is the same as the parent of the
immediately preceding member.
OLAPException
public boolean isContinued()
throws OLAPException
isContinued in interface TupleElementInterfaceOLAPException
public void setChildCount(int childCount)
throws OLAPException
childCount - The number of children for this member.
OLAPException
public int getChildCount()
throws OLAPException
getChildCount in interface TupleElementInterfaceOLAPException
public void setProperties(java.util.Map properties)
throws OLAPException
properties - A PropertyBagInterface containing the additional properties that may
have been specified for this tuple element.
OLAPException
public java.util.Map getProperties()
throws OLAPException
getProperties in interface TupleElementInterfaceOLAPException
public int getSpan()
throws OLAPException
getSpan in interface TupleElementInterfaceOLAPException
public void setSpan(int span)
throws OLAPException
setSpan in interface TupleElementInterfacespan - value of this element
OLAPException
public void setMinimumCoordinate(int minimumCoordinate)
throws OLAPException
getMinimumCoordinate() will equal
getMaximumCoordinate(). This value may be changed internally if is not set
correctly. Set the minimumCoordinate last if do not want it overwritten.
setMinimumCoordinate in interface TupleElementInterfaceminimumCoordinate - A zero-based integer that identifies a point along the axis.
OLAPExceptiongetMaximumCoordinate()
public int getMinimumCoordinate()
throws OLAPException
getMinimumCoordinate() will equal
getMaximumCoordinate().
getMinimumCoordinate in interface TupleElementInterfaceOLAPExceptiongetMaximumCoordinate()
public void setMaximumCoordinate(int maximumCoordinate)
throws OLAPException
getMinimumCoordinate() will equal
getMaximumCoordinate(). This value may be changed internally if is not set
correctly. Set the maximumCoordinate last if do not want it overwritten.
setMaximumCoordinate in interface TupleElementInterfacemaximumCoordinate - A zero-based integer that identifies a point along the axis.
OLAPExceptiongetMinimumCoordinate()
public int getMaximumCoordinate()
throws OLAPException
getMinimumCoordinate() will equal
getMaximumCoordinate().
getMaximumCoordinate in interface TupleElementInterfaceOLAPExceptiongetMinimumCoordinate()
public TupleInterface getTuple()
throws OLAPException
getTuple in interface TupleElementInterfaceOLAPException
public void setTuple(TupleInterface tuple)
throws OLAPException
parent - tuple of this tuple element
OLAPException
public int getTupleElementIndex()
throws OLAPException
getTupleElementIndex in interface TupleElementInterfaceOLAPException
public int getLevelDepth()
throws OLAPException
getLevelDepth in interface TupleElementInterfaceOLAPException
public void setLevelDepth(int levelDepth)
throws OLAPException
levelDepth - number of levels above this tuple element
OLAPException
public boolean isContextual()
throws OLAPException
isContextual in interface TupleElementInterfaceOLAPException
public void setContextual(boolean isContextual)
throws OLAPException
isContextual - set whether this tuple is part of the basic resultset
OLAPExceptionisContextual
public java.lang.String getFormat()
throws OLAPException
getFormat in interface TupleElementInterfaceOLAPException
public int getSpanDepth()
throws OLAPException
getSpanDepth in interface TupleElementInterfaceOLAPExceptionTupleElementInterface.getSpanDepth()public void setSpanDepth(int depth)
setSpanDepth in interface TupleElementInterfaceTupleElementInterface.setSpanDepth(int)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||