Package com.macrofocus.molap.subset
Class DefaultBinningDimension<Row,Column,Value,Bin>
- java.lang.Object
-
- com.macrofocus.molap.subset.AbstractDimension<Row>
-
- com.macrofocus.molap.subset.AbstractBinningDimension<Row,Column,Value,Bin>
-
- com.macrofocus.molap.subset.DefaultBinningDimension<Row,Column,Value,Bin>
-
- All Implemented Interfaces:
BinningDimension<Row,Bin>
,CategoricalDimension<Row,Column,Bin>
,Dimension<Row>
,SingleBinningDimension<Row,Bin>
- Direct Known Subclasses:
DefaultCategoricalDimension
,DefaultDistributionDimension
public class DefaultBinningDimension<Row,Column,Value,Bin> extends AbstractBinningDimension<Row,Column,Value,Bin> implements CategoricalDimension<Row,Column,Bin>
Created by luc on 16/05/15.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.macrofocus.molap.subset.AbstractBinningDimension
AbstractBinningDimension.Operation
-
Nested classes/interfaces inherited from class com.macrofocus.molap.subset.AbstractDimension
AbstractDimension.FilteringCallback<R>, AbstractDimension.FilteringEvent<Row>, AbstractDimension.IndicesIterable<R>, AbstractDimension.IndicesSupplier
-
Nested classes/interfaces inherited from interface com.macrofocus.molap.subset.BinningDimension
BinningDimension.BinningStrategy<Row,Bin>
-
Nested classes/interfaces inherited from interface com.macrofocus.molap.subset.SingleBinningDimension
SingleBinningDimension.SingleBinningStrategy<Row,Bin>
-
-
Field Summary
-
Fields inherited from class com.macrofocus.molap.subset.AbstractBinningDimension
activeIndices, bins, dataFrame, filterCounts, groups, index, inverseFilter, maxValueCount, otherActiveIndices, selectedCounts, selection, sumValueCount, updateFilterImmediately
-
Fields inherited from class com.macrofocus.molap.subset.AbstractDimension
updateTimer
-
-
Constructor Summary
Constructors Constructor Description DefaultBinningDimension(SubsetDataFrame<Row,Column,Value> dataFrame, Column column, AbstractDimension.FilteringCallback<Row> filteringCallback, com.macrofocus.selection.MutableSelection<Row> selection, SingleBinningDimension.SingleBinningStrategy<Row,Bin> binningStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsBin(Bin bin)
protected java.util.Map<Bin,int[]>
createMap(java.util.Map<Bin,gnu.trove.list.TIntList> map)
Bin
getBin(Row row)
SingleBinningDimension.SingleBinningStrategy<Row,Bin>
getBinningStrategy()
Group
getGroup(Reducer<Row,Bin> reducer)
java.lang.String
getName()
void
materializeIndex()
void
reduce(int[] otherActiveIndices)
protected Bin
rowToBin(Row row)
void
setBinningStrategy(SingleBinningDimension.SingleBinningStrategy<Row,Bin> binningStrategy)
java.lang.String
toString()
-
Methods inherited from class com.macrofocus.molap.subset.AbstractBinningDimension
filterAll, filterExact, filterExactIterable, getActiveBins, getActiveDensity, getActiveIndices, getActiveIndicesUsingArrays, getActiveIndicesUsingHashSet, getBins, getDensity, getFilter, getFilterDensity, getFilterExact, getIndex, getInverseFilter, getMaxActiveDensity, getMaxDensity, getRows, getSelection, getSelectionDensity, getSumActiveDensity, getSumDensity, isReducable, markDirty, scheduleUpdateFilter, setInverseFilter, updateActive, updateActiveIndices, updateFilter
-
Methods inherited from class com.macrofocus.molap.subset.AbstractDimension
addDimensionListener, addWeakDimensionListener, notifyDimensionChanged, notifySelectedCountChanged, removeDimensionListener, removeDimensionListeners, setUpdateTimer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.macrofocus.molap.subset.BinningDimension
getActiveBins, getActiveDensity, getActiveIndicesUsingArrays, getActiveIndicesUsingHashSet, getBins, getDensity, getFilterDensity, getInverseFilter, getMaxActiveDensity, getMaxDensity, getRows, getSelection, getSelectionDensity, getSumActiveDensity, getSumDensity, setInverseFilter
-
Methods inherited from interface com.macrofocus.molap.subset.Dimension
addDimensionListener, addWeakDimensionListener, filterAll, getActiveIndices, isReducable, markDirty, removeDimensionListener, removeDimensionListeners, setUpdateTimer
-
Methods inherited from interface com.macrofocus.molap.subset.SingleBinningDimension
filterExact, filterExactIterable, getFilterExact
-
-
-
-
Constructor Detail
-
DefaultBinningDimension
public DefaultBinningDimension(SubsetDataFrame<Row,Column,Value> dataFrame, Column column, AbstractDimension.FilteringCallback<Row> filteringCallback, com.macrofocus.selection.MutableSelection<Row> selection, SingleBinningDimension.SingleBinningStrategy<Row,Bin> binningStrategy)
-
-
Method Detail
-
containsBin
public boolean containsBin(Bin bin)
- Specified by:
containsBin
in interfaceCategoricalDimension<Row,Column,Value>
-
getBin
public Bin getBin(Row row)
- Specified by:
getBin
in interfaceSingleBinningDimension<Row,Column>
-
setBinningStrategy
public void setBinningStrategy(SingleBinningDimension.SingleBinningStrategy<Row,Bin> binningStrategy)
- Specified by:
setBinningStrategy
in interfaceSingleBinningDimension<Row,Column>
-
getBinningStrategy
public SingleBinningDimension.SingleBinningStrategy<Row,Bin> getBinningStrategy()
- Specified by:
getBinningStrategy
in interfaceSingleBinningDimension<Row,Column>
-
reduce
public void reduce(int[] otherActiveIndices)
-
getGroup
public Group getGroup(Reducer<Row,Bin> reducer)
- Specified by:
getGroup
in interfaceBinningDimension<Row,Column>
-
materializeIndex
public void materializeIndex()
- Specified by:
materializeIndex
in interfaceDimension<Row>
-
createMap
protected java.util.Map<Bin,int[]> createMap(java.util.Map<Bin,gnu.trove.list.TIntList> map)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-