Package com.macrofocus.molap.dataframe
Class WrappedDataFrame<R,C,V>
- java.lang.Object
-
- com.macrofocus.molap.dataframe.AbstractDataFrame<R,C,V>
-
- com.macrofocus.molap.dataframe.AbstractMutableDataFrame<R,C,V>
-
- com.macrofocus.molap.dataframe.ReMappedDataFrame<R,C,V>
-
- com.macrofocus.molap.dataframe.WrappedDataFrame<R,C,V>
-
- All Implemented Interfaces:
DataFrame<R,C,V>
,MutableDataFrame<R,C,V>
public class WrappedDataFrame<R,C,V> extends ReMappedDataFrame<R,C,V>
Created by luc on 09/03/16.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WrappedDataFrame.AbstractColumn<R,C,V>
static interface
WrappedDataFrame.Column<R,C,V>
static class
WrappedDataFrame.ColumnEvent<R,C,V>
static interface
WrappedDataFrame.ColumnListener<R,C,V>
static class
WrappedDataFrame.DataFrameColumn<R,C,V>
static class
WrappedDataFrame.DerivedColumn<R,C,V>
class
WrappedDataFrame.InternalDataFrameColumn
static class
WrappedDataFrame.NamedTypedColumn<R,V>
static class
WrappedDataFrame.SumColumn<R,C,V>
-
Nested classes/interfaces inherited from class com.macrofocus.molap.dataframe.ReMappedDataFrame
ReMappedDataFrame.ReMappedRecipe<R,C>
-
Nested classes/interfaces inherited from class com.macrofocus.molap.dataframe.AbstractDataFrame
AbstractDataFrame.ColumnSeries
-
-
Field Summary
-
Fields inherited from class com.macrofocus.molap.dataframe.ReMappedDataFrame
dataFrame
-
-
Constructor Summary
Constructors Constructor Description WrappedDataFrame(DataFrame<R,C,V> dataFrame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDerivedColumn(WrappedDataFrame.Column<R,C,V>... columns)
void
addOriginalColumn(C... columns)
void
addOriginalColumns()
void
addRenamedColumn(C column, C name)
void
addRenamedColumn(C column, C name, boolean checkExists)
WrappedDataFrame.Column
getCalculatedColumnAt(int i)
java.lang.Class
getColumnClass(C c)
Returns the most specific superclass for all cell values in a columnjava.lang.String
getColumnName(C c)
Returns the name of the column.DataFrame<R,C,V>
getOriginalDataFrame()
V
getValueAt(R r, C c)
Returns the value for the cell at the intersection of thecolumn
key androw
key.void
modifyColumn(C oldColumn, WrappedDataFrame.Column<R,C,V> column)
void
removeDerivedColumn(WrappedDataFrame.Column<R,C,V>... columns)
-
Methods inherited from class com.macrofocus.molap.dataframe.ReMappedDataFrame
getColumnIndex, getRow, getRowClass, getRowIndex, invalidate, join, originalDataFrameChanged, scheduleUpdate, setDataFrame, setRecipe, setValueAt, updateImmediatelly
-
Methods inherited from class com.macrofocus.molap.dataframe.AbstractMutableDataFrame
reindexRows, reindexRows
-
Methods inherited from class com.macrofocus.molap.dataframe.AbstractDataFrame
addDataFrameListener, addWeakDataFrameListener, aggregate, aggregate, append, appendAndReindex, benchmark, columns, filter, getCentroid, getColumn, getColumnAddress, getColumnCount, getColumnKey, getConstant, getCount, getCountDistinct, getCountDistinctWithNull, getCube, getDataFrameAggregation, getDistributiveStatistics, getFirst, getFirstQuartile, getMax, getMean, getMedian, getMin, getRandom, getRowAddress, getRowCount, getRowKey, getStatistics, getStdDev, getSum, getThirdQuartile, getUnivariateStatistics, getVariance, getVarianceByPopulation, getWeightedMean, getWeightedSum, notifyDataFrameChanged, orderRows, print, print, printSchema, reindexColumns, reindexRows, reindexRows, reindexRows, remapColumns, removeColumns, removeDataFrameListener, removeDataFrameListeners, removeDuplicates, rows
-
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.dataframe.DataFrame
addDataFrameListener, addWeakDataFrameListener, aggregate, aggregate, append, appendAndReindex, benchmark, columns, filter, getCentroid, getColumn, getColumnAddress, getColumnCount, getColumnKey, getConstant, getCount, getCountDistinct, getCountDistinctWithNull, getDataFrameAggregation, getDistributiveStatistics, getFirst, getFirstQuartile, getMax, getMean, getMedian, getMin, getRandom, getRowAddress, getRowCount, getRowKey, getStatistics, getStdDev, getSum, getThirdQuartile, getUnivariateStatistics, getVariance, getVarianceByPopulation, getWeightedMean, getWeightedSum, orderRows, print, print, printSchema, reindexColumns, reindexRows, reindexRows, reindexRows, remapColumns, removeColumns, removeDataFrameListener, removeDataFrameListeners, removeDuplicates, rows
-
Methods inherited from interface com.macrofocus.molap.dataframe.MutableDataFrame
reindexRows, reindexRows
-
-
-
-
Method Detail
-
getColumnName
public java.lang.String getColumnName(C c)
Description copied from interface:DataFrame
Returns the name of the column. This is a convenience method for labeling purpose.- Specified by:
getColumnName
in interfaceDataFrame<R,C,V>
- Overrides:
getColumnName
in classAbstractDataFrame<R,C,V>
- Parameters:
c
- the key of the column- Returns:
- the name of the column
-
getColumnClass
public java.lang.Class getColumnClass(C c)
Description copied from interface:DataFrame
Returns the most specific superclass for all cell values in a column- Specified by:
getColumnClass
in interfaceDataFrame<R,C,V>
- Overrides:
getColumnClass
in classReMappedDataFrame<R,C,V>
- Parameters:
c
- the key of the column- Returns:
- the common ancestor class of the object values in the column.
-
getValueAt
public V getValueAt(R r, C c)
Description copied from interface:DataFrame
Returns the value for the cell at the intersection of thecolumn
key androw
key.- Specified by:
getValueAt
in interfaceDataFrame<R,C,V>
- Overrides:
getValueAt
in classReMappedDataFrame<R,C,V>
- Parameters:
r
- the row key whose value is to be queriedc
- the column key whose value is to be queried- Returns:
- the value Object at the specified cell
-
addOriginalColumns
public void addOriginalColumns()
-
addOriginalColumn
public void addOriginalColumn(C... columns)
-
addDerivedColumn
public void addDerivedColumn(WrappedDataFrame.Column<R,C,V>... columns)
-
removeDerivedColumn
public void removeDerivedColumn(WrappedDataFrame.Column<R,C,V>... columns)
-
getOriginalDataFrame
public DataFrame<R,C,V> getOriginalDataFrame()
- Overrides:
getOriginalDataFrame
in classReMappedDataFrame<R,C,V>
-
getCalculatedColumnAt
public WrappedDataFrame.Column getCalculatedColumnAt(int i)
-
modifyColumn
public void modifyColumn(C oldColumn, WrappedDataFrame.Column<R,C,V> column)
-
-