Package com.macrofocus.molap.aggregates
Interface AggregateDataFrame<C>
-
- Type Parameters:
C
- the original type of columns
- All Known Implementing Classes:
QueryDataFrame
public interface AggregateDataFrame<C> extends DataFrame<Group,java.lang.String,java.lang.Object>
A data frame specialized for aggregating values. For obtaining an instance of such an interface, seeDataFrame.aggregate(com.macrofocus.molap.aggregates.aggregation.Aggregation...)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AggregateDataFrame<C>
collapse()
AggregateDataFrame<C>
dice(java.util.Set<java.lang.Object> valuesSets)
AggregateDataFrame<C>
drillDown(C... columns)
Returns a new data frame that group the rows by values of the specified columns.AggregateDataFrame<C>
drillUp()
Returns a new data frame with the last group by level removed, i.e.Cuboid
getCuboid()
Returns the cuboid used to aggregate the values.AggregateDataFrame<C>
on(Cuboid... cuboids)
Combine the values from multiple cuboids into that data frame.AggregateDataFrame<C>
order(Aggregation... aggregations)
Returns a new data frame that change the order of the groups according to the specified aggregation methods.AggregateDataFrame<C>
pivot(Aggregation aggregation)
Returns a new data frame that pivot the specified aggregation method into column values.AggregateDataFrame<C>
slice(java.lang.Object value)
-
Methods inherited from interface com.macrofocus.molap.dataframe.DataFrame
addDataFrameListener, addWeakDataFrameListener, aggregate, aggregate, append, appendAndReindex, benchmark, columns, filter, getCentroid, getColumn, getColumnAddress, getColumnClass, getColumnCount, getColumnIndex, getColumnKey, getColumnName, getConstant, getCount, getCountDistinct, getCountDistinctWithNull, getDataFrameAggregation, getDistributiveStatistics, getFirst, getFirstQuartile, getMax, getMean, getMedian, getMin, getRandom, getRow, getRowAddress, getRowClass, getRowCount, getRowIndex, getRowKey, getStatistics, getStdDev, getSum, getThirdQuartile, getUnivariateStatistics, getValueAt, getVariance, getVarianceByPopulation, getWeightedMean, getWeightedSum, join, orderRows, print, print, printSchema, reindexColumns, reindexRows, reindexRows, reindexRows, reindexRows, reindexRows, remapColumns, removeColumns, removeDataFrameListener, removeDataFrameListeners, removeDuplicates, rows
-
-
-
-
Method Detail
-
getCuboid
Cuboid getCuboid()
Returns the cuboid used to aggregate the values.- Returns:
- the cuboid
-
drillDown
AggregateDataFrame<C> drillDown(C... columns)
Returns a new data frame that group the rows by values of the specified columns.- Parameters:
columns
- the columns- Returns:
- a new data frame aggregating the values according to the new criteria
-
drillUp
AggregateDataFrame<C> drillUp()
Returns a new data frame with the last group by level removed, i.e. one level up.- Returns:
- a new data frame aggregating the values according to the new criteria
-
slice
AggregateDataFrame<C> slice(java.lang.Object value)
-
dice
AggregateDataFrame<C> dice(java.util.Set<java.lang.Object> valuesSets)
-
collapse
AggregateDataFrame<C> collapse()
-
order
AggregateDataFrame<C> order(Aggregation... aggregations)
Returns a new data frame that change the order of the groups according to the specified aggregation methods.- Parameters:
aggregations
- the aggregation methods- Returns:
- a new data frame
-
pivot
AggregateDataFrame<C> pivot(Aggregation aggregation)
Returns a new data frame that pivot the specified aggregation method into column values.- Parameters:
aggregation
- the aggregation to pivot- Returns:
- a new data frame
-
on
AggregateDataFrame<C> on(Cuboid... cuboids)
Combine the values from multiple cuboids into that data frame.- Parameters:
cuboids
- the cuboids- Returns:
- a new data frame
-
-