mondrian.rolap.agg
Class SegmentHeader.ConstrainedColumn

java.lang.Object
  extended by 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

Field Summary
(package private)  String columnExpression
           
(package private)  Object[] values
           
 
Constructor Summary
SegmentHeader.ConstrainedColumn(String columnExpression, Object[] valueList)
          Constructor for ConstrainedColumn.
 
Method Summary
 boolean equals(Object obj)
           
 String getColumnExpression()
          Returns the column expression of this constrained column.
 Object[] getValues()
          Returns an array of predicate values for this column.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnExpression

final String columnExpression

values

final Object[] values
Constructor Detail

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.
Method Detail

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

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads