|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap.QueryPart
mondrian.olap.QueryAxis
public class QueryAxis
An axis in an MDX query. For example, the typical MDX query has two axes, which appear as the "ON COLUMNS" and "ON ROWS" clauses.
| Nested Class Summary | |
|---|---|
static class |
QueryAxis.SubtotalVisibility
SubtotalVisibility enumerates the allowed values of
whether subtotals are visible. |
| Constructor Summary | |
|---|---|
QueryAxis(boolean nonEmpty,
Exp set,
AxisOrdinal axisDef,
QueryAxis.SubtotalVisibility subtotalVisibility)
Creates an axis with no dimension properties. |
|
QueryAxis(boolean nonEmpty,
Exp set,
AxisOrdinal axisDef,
QueryAxis.SubtotalVisibility subtotalVisibility,
Id[] dimensionProperties)
Creates an axis. |
|
| Method Summary | |
|---|---|
Object |
accept(MdxVisitor visitor)
|
void |
addLevel(Level level)
|
Object |
clone()
|
(package private) static QueryAxis[] |
cloneArray(QueryAxis[] a)
|
Calc |
compile(ExpCompiler compiler,
List<ResultStyle> resultStyles)
|
String |
getAxisName()
|
AxisOrdinal |
getAxisOrdinal()
Returns the ordinal of this axis, for example AxisOrdinal.ROWS. |
Object[] |
getChildren()
Returns an array of the object's children. |
Id[] |
getDimensionProperties()
|
Exp |
getSet()
Returns the expression which is used to compute the value of this axis. |
QueryAxis.SubtotalVisibility |
getSubtotalVisibility()
|
boolean |
isNonEmpty()
Returns whether the axis has the NON EMPTY property set. |
boolean |
isOrdered()
Returns whether the axis has the ORDER property set. |
void |
resetSubtotalVisibility()
|
void |
resolve(Validator validator)
|
void |
setNonEmpty(boolean nonEmpty)
Sets whether the axis has the NON EMPTY property set. |
void |
setOrdered(boolean ordered)
Sets whether the axis has the ORDER property set. |
void |
setSet(Exp set)
Sets the expression which is used to compute the value of this axis. |
(package private) void |
setSubtotalVisibility(boolean bShowSubtotals)
|
void |
unparse(PrintWriter pw)
Writes a string representation of this parse tree node to the given writer. |
void |
validate(Validator validator)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryAxis(boolean nonEmpty,
Exp set,
AxisOrdinal axisDef,
QueryAxis.SubtotalVisibility subtotalVisibility,
Id[] dimensionProperties)
nonEmpty - Whether to filter out members of this axis whose cells
are all emptyset - Expression to populate the axisaxisDef - Which axis (ROWS, COLUMNS, etc.)subtotalVisibility - Whether to show subtotalsdimensionProperties - List of dimension properties
public QueryAxis(boolean nonEmpty,
Exp set,
AxisOrdinal axisDef,
QueryAxis.SubtotalVisibility subtotalVisibility)
QueryAxis(boolean,Exp,AxisOrdinal,mondrian.olap.QueryAxis.SubtotalVisibility,Id[])| Method Detail |
|---|
public Object clone()
clone in class Objectstatic QueryAxis[] cloneArray(QueryAxis[] a)
public Object accept(MdxVisitor visitor)
public Calc compile(ExpCompiler compiler,
List<ResultStyle> resultStyles)
public String getAxisName()
public AxisOrdinal getAxisOrdinal()
AxisOrdinal.ROWS.
public boolean isNonEmpty()
NON EMPTY property set.
public void setNonEmpty(boolean nonEmpty)
NON EMPTY property set.
See isNonEmpty().
public boolean isOrdered()
ORDER property set.
public void setOrdered(boolean ordered)
ORDER property set.
public Exp getSet()
public void setSet(Exp set)
getSet().
public void resolve(Validator validator)
public Object[] getChildren()
WalkableWalkable are ignored.
getChildren in interface WalkablegetChildren in class QueryPartpublic void unparse(PrintWriter pw)
QueryPart
unparse in class QueryPartpw - writerpublic void addLevel(Level level)
void setSubtotalVisibility(boolean bShowSubtotals)
public QueryAxis.SubtotalVisibility getSubtotalVisibility()
public void resetSubtotalVisibility()
public void validate(Validator validator)
public Id[] getDimensionProperties()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||