Package mondrian.olap
Class MondrianDef.NamedSet
- java.lang.Object
-
- org.eigenbase.xom.ElementDef
-
- mondrian.olap.MondrianDef.NamedSet
-
- All Implemented Interfaces:
Serializable,Cloneable,org.eigenbase.xom.NodeDef
- Enclosing class:
- MondrianDef
public static class MondrianDef.NamedSet extends org.eigenbase.xom.ElementDefDefines a named set which can be used in queries in the same way as a set defined using a WITH SET clause.
A named set can be defined against a particular cube, or can be global to a schema. If it is defined against a cube, it is only available to queries which use that cube.
A named set defined against a cube is not inherited by a virtual cubes defined against that cube. (But you can define a named set against a virtual cube.)
A named set defined against a schema is available in all cubes and virtual cubes in that schema. However, it is only valid if the cube contains dimensions with the names required to make the formula valid.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description MondrianDef.AnnotationsannotationsContains values of user-defined properties.StringcaptionStringdescriptionStringformulaMondrianDef.FormulaformulaElementMDX expression which gives the value of this set.Stringname
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisplay(PrintWriter _out, int _indent)booleandisplayDiff(org.eigenbase.xom.ElementDef _other, PrintWriter _out, int _indent)voiddisplayXML(org.eigenbase.xom.XMLOutput _out, int _indent)StringgetFormula()Returns the formula, looking for a sub-element called "Formula" first, then looking for an attribute called "formula".StringgetName()-
Methods inherited from class org.eigenbase.xom.ElementDef
addChild, addChildren, clone, constructElement, constructElement, deepCopy, diff, displayAttribute, displayAttributeDiff, displayElement, displayElementArray, displayElementArrayDiff, displayElementDiff, displayIndent, displayString, displayStringArray, displayStringArrayDiff, displayStringDiff, displayXML, displayXMLElement, displayXMLElementArray, displayXMLString, displayXMLStringArray, equals, getChildren, getElementChildren, getElementClass, getLocation, getMixedChildren, getMixedChildren_new, getText, getType, getWrapper, hashCode, toCompactXML, toString, toXML, verifyEqual
-
-
-
-
Field Detail
-
name
public String name
-
caption
public String caption
-
description
public String description
-
formula
public String formula
-
annotations
public MondrianDef.Annotations annotations
Contains values of user-defined properties.
-
formulaElement
public MondrianDef.Formula formulaElement
MDX expression which gives the value of this set.
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.eigenbase.xom.NodeDef- Overrides:
getNamein classorg.eigenbase.xom.ElementDef
-
display
public void display(PrintWriter _out, int _indent)
-
displayXML
public void displayXML(org.eigenbase.xom.XMLOutput _out, int _indent)- Specified by:
displayXMLin interfaceorg.eigenbase.xom.NodeDef- Overrides:
displayXMLin classorg.eigenbase.xom.ElementDef
-
displayDiff
public boolean displayDiff(org.eigenbase.xom.ElementDef _other, PrintWriter _out, int _indent)- Overrides:
displayDiffin classorg.eigenbase.xom.ElementDef
-
getFormula
public String getFormula()
Returns the formula, looking for a sub-element called "Formula" first, then looking for an attribute called "formula".
-
-