Package com.macrofocus.molap.subset
Class DefaultOrdinalDimension<Row,Column,Value>
- java.lang.Object
-
- com.macrofocus.molap.subset.AbstractDimension<Row>
-
- com.macrofocus.molap.subset.DefaultOrdinalDimension<Row,Column,Value>
-
- All Implemented Interfaces:
Dimension<Row>
,OrdinalDimension<Row,Column,Value>
public class DefaultOrdinalDimension<Row,Column,Value> extends AbstractDimension<Row> implements OrdinalDimension<Row,Column,Value>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.macrofocus.molap.subset.AbstractDimension
AbstractDimension.FilteringCallback<R>, AbstractDimension.FilteringEvent<Row>, AbstractDimension.IndicesIterable<R>, AbstractDimension.IndicesSupplier
-
-
Field Summary
-
Fields inherited from class com.macrofocus.molap.subset.AbstractDimension
updateTimer
-
-
Constructor Summary
Constructors Constructor Description DefaultOrdinalDimension(SubsetDataFrame<Row,Column,Value> dataFrame, Column column, AbstractDimension.FilteringCallback<Row> filteringCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filterAll()
void
filterRange(Value from, Value to)
int[]
getActiveIndices()
Value
getFrom()
java.lang.String
getName()
Value
getTo()
Value
getValue(Row row)
boolean
isActive()
boolean
isReducable()
void
markDirty()
void
materializeIndex()
void
reduce(int[] otherActiveIndices)
int[]
updateActiveIndices()
protected void
updateFilter()
-
Methods inherited from class com.macrofocus.molap.subset.AbstractDimension
addDimensionListener, addWeakDimensionListener, notifyDimensionChanged, notifySelectedCountChanged, removeDimensionListener, removeDimensionListeners, scheduleUpdateFilter, setUpdateTimer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.macrofocus.molap.subset.Dimension
addDimensionListener, addWeakDimensionListener, removeDimensionListener, removeDimensionListeners, setUpdateTimer
-
-
-
-
Constructor Detail
-
DefaultOrdinalDimension
public DefaultOrdinalDimension(SubsetDataFrame<Row,Column,Value> dataFrame, Column column, AbstractDimension.FilteringCallback<Row> filteringCallback)
-
-
Method Detail
-
getActiveIndices
public int[] getActiveIndices()
- Specified by:
getActiveIndices
in interfaceDimension<Row>
-
isReducable
public boolean isReducable()
- Specified by:
isReducable
in interfaceDimension<Row>
-
reduce
public void reduce(int[] otherActiveIndices)
-
materializeIndex
public void materializeIndex()
- Specified by:
materializeIndex
in interfaceDimension<Row>
-
getFrom
public Value getFrom()
- Specified by:
getFrom
in interfaceOrdinalDimension<Row,Column,Value>
-
filterRange
public void filterRange(Value from, Value to)
- Specified by:
filterRange
in interfaceOrdinalDimension<Row,Column,Value>
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfaceOrdinalDimension<Row,Column,Value>
-
getValue
public Value getValue(Row row)
- Specified by:
getValue
in interfaceOrdinalDimension<Row,Column,Value>
-
updateFilter
protected void updateFilter()
- Specified by:
updateFilter
in classAbstractDimension<Row>
-
updateActiveIndices
public int[] updateActiveIndices()
-
-