mondrian.rolap.agg
Class SegmentHeader.ConstrainedColumn
java.lang.Object
mondrian.rolap.agg.SegmentHeader.ConstrainedColumn
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- SegmentHeader
public static class SegmentHeader.ConstrainedColumn
- extends Object
- implements Serializable
Constrained columns are part of the SegmentHeader and SegmentCache.
They uniquely identify a constrained column within a segment.
Each segment can have many constrained columns. Each column can
be constrained by multiple values at once (similar to a SQL in()
predicate).
They are immutable and serializable.
- See Also:
- Serialized Form
columnExpression
final String columnExpression
values
final Object[] values
SegmentHeader.ConstrainedColumn
public SegmentHeader.ConstrainedColumn(String columnExpression,
Object[] valueList)
- Constructor for ConstrainedColumn.
- Parameters:
columnExpression - Name of the source table into which the
constrained column is, as defined in the Mondrian schema.valueList - List of values to constrain the
column to. Use objects like Integer, Boolean, String
or Double.
getColumnExpression
public String getColumnExpression()
- Returns the column expression of this constrained column.
- Returns:
- A column expression.
getValues
public Object[] getValues()
- Returns an array of predicate values for this column.
- Returns:
- An array of object values.
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object