Package com.macrofocus.molap.subset
Class DefaultMultiBinningDimension<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.AbstractMultiBinningDimension<Row,Column,Value,Bin>
-
- com.macrofocus.molap.subset.DefaultMultiBinningDimension<Row,Column,Value,Bin>
-
- All Implemented Interfaces:
BinningDimension<Row,Bin>
,Dimension<Row>
,MultiBinningDimension<Row,Bin>
- Direct Known Subclasses:
DefaultTextDimension
public class DefaultMultiBinningDimension<Row,Column,Value,Bin> extends AbstractMultiBinningDimension<Row,Column,Value,Bin> implements MultiBinningDimension<Row,Bin>
Created by luc on 07.04.17.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.macrofocus.molap.subset.AbstractMultiBinningDimension
AbstractMultiBinningDimension.AbstractSortedArrayFilter, AbstractMultiBinningDimension.AndSortedArrayFilter, AbstractMultiBinningDimension.BinSortedArrayFilter, AbstractMultiBinningDimension.DefaultSortedArrayFilter, AbstractMultiBinningDimension.OrSortedArrayFilter
-
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.MultiBinningDimension
MultiBinningDimension.MultiBinningStrategy<Row,Bin>, MultiBinningDimension.SortedArrayFilter<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 DefaultMultiBinningDimension(SubsetDataFrame<Row,Column,Value> dataFrame, AbstractDimension.FilteringCallback<Row> filteringCallback, com.macrofocus.selection.MutableSelection<Row> selection, MultiBinningDimension.MultiBinningStrategy<Row,Bin> binningStrategy, Column... columns)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.macrofocus.utils.IndexedNavigableMap<Bin,int[]>
createMap(java.util.Map<Bin,gnu.trove.list.TIntList> map)
MultiBinningDimension.MultiBinningStrategy<Row,Bin>
getBinningStrategy()
Bin[]
getBins(Row row)
Group
getGroup(Reducer<Row,Bin> reducer)
java.lang.String
getName()
void
materializeIndex()
void
reduce(int[] otherActiveIndices)
static int[]
removeDuplicates(int[] sorted)
protected Bin[]
rowToBins(Row row)
void
setBinningStrategy(MultiBinningDimension.MultiBinningStrategy<Row,Bin> binningStrategy)
-
Methods inherited from class com.macrofocus.molap.subset.AbstractMultiBinningDimension
createSortedArrayFilter, getDefaultSortedArrayFilter, getFilterSelection, updateActiveIndices
-
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, 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, toString, 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.MultiBinningDimension
createSortedArrayFilter, filterExact, filterExactIterable, getDefaultSortedArrayFilter, getFilterExact
-
-
-
-
Constructor Detail
-
DefaultMultiBinningDimension
public DefaultMultiBinningDimension(SubsetDataFrame<Row,Column,Value> dataFrame, AbstractDimension.FilteringCallback<Row> filteringCallback, com.macrofocus.selection.MutableSelection<Row> selection, MultiBinningDimension.MultiBinningStrategy<Row,Bin> binningStrategy, Column... columns)
-
-
Method Detail
-
getBinningStrategy
public MultiBinningDimension.MultiBinningStrategy<Row,Bin> getBinningStrategy()
- Specified by:
getBinningStrategy
in interfaceMultiBinningDimension<Row,Column>
-
setBinningStrategy
public void setBinningStrategy(MultiBinningDimension.MultiBinningStrategy<Row,Bin> binningStrategy)
- Specified by:
setBinningStrategy
in interfaceMultiBinningDimension<Row,Column>
-
getBins
public Bin[] getBins(Row row)
- Specified by:
getBins
in interfaceMultiBinningDimension<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 com.macrofocus.utils.IndexedNavigableMap<Bin,int[]> createMap(java.util.Map<Bin,gnu.trove.list.TIntList> map)
-
removeDuplicates
public static int[] removeDuplicates(int[] sorted)
-
-