public class QueryAxis extends QueryPart
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() |
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.
|
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)
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 Exp getSet()
public void setSet(Exp set)
getSet()
.public void resolve(Validator validator)
public Object[] getChildren()
Walkable
are ignored.getChildren
in class QueryPart
public void unparse(PrintWriter pw)
QueryPart
public void addLevel(Level level)
public QueryAxis.SubtotalVisibility getSubtotalVisibility()
public void resetSubtotalVisibility()
public void validate(Validator validator)
public Id[] getDimensionProperties()
Copyright © 2019 Hitachi Vantara. All rights reserved.