Modifier and Type | Class and Description |
---|---|
static class |
QueryAxis.SubtotalVisibility
SubtotalVisibility enumerates the allowed values of
whether subtotals are visible. |
Constructor and Description |
---|
QueryAxis(boolean nonEmpty,
Exp set,
AxisOrdinal axisOrdinal,
QueryAxis.SubtotalVisibility subtotalVisibility)
Creates an axis with no dimension properties.
|
QueryAxis(boolean nonEmpty,
Exp set,
AxisOrdinal axisOrdinal,
QueryAxis.SubtotalVisibility subtotalVisibility,
Id[] dimensionProperties)
Creates an axis.
|
Modifier and Type | Method and Description |
---|---|
Object |
accept(MdxVisitor visitor) |
void |
addLevel(Level level) |
Object |
clone() |
(package private) static QueryAxis[] |
cloneArray(QueryAxis[] a) |
Calc |
compile(ExpCompiler compiler,
ResultStyle resultStyle) |
String |
getAxisName() |
AxisOrdinal |
getAxisOrdinal()
Returns the ordinal of this axis, for example
AxisOrdinal.StandardAxisOrdinal.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) |
public QueryAxis(boolean nonEmpty, Exp set, AxisOrdinal axisOrdinal, QueryAxis.SubtotalVisibility subtotalVisibility, Id[] dimensionProperties)
nonEmpty
- Whether to filter out members of this axis whose cells
are all emptyset
- Expression to populate the axisaxisOrdinal
- Which axis (ROWS, COLUMNS, etc.)subtotalVisibility
- Whether to show subtotalsdimensionProperties
- List of dimension propertiespublic QueryAxis(boolean nonEmpty, Exp set, AxisOrdinal axisOrdinal, QueryAxis.SubtotalVisibility subtotalVisibility)
static QueryAxis[] cloneArray(QueryAxis[] a)
public Object accept(MdxVisitor visitor)
public Calc compile(ExpCompiler compiler, ResultStyle resultStyle)
public String getAxisName()
public AxisOrdinal getAxisOrdinal()
AxisOrdinal.StandardAxisOrdinal.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 void setSet(Exp set)
getSet()
.public Object[] getChildren()
Walkable
Walkable
are ignored.getChildren
in interface Walkable
getChildren
in class QueryPart
public void unparse(PrintWriter pw)
QueryPart
void setSubtotalVisibility(boolean bShowSubtotals)
public QueryAxis.SubtotalVisibility getSubtotalVisibility()
public void resetSubtotalVisibility()
public Id[] getDimensionProperties()