Package com.macrofocus.molap.dataframe
Class ReMappedDataFrame<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>
-
- Type Parameters:
R
- the rexindexed type of rowsC
- the reindexed type of columnsV
- the type of values
- All Implemented Interfaces:
DataFrame<R,C,V>
,MutableDataFrame<R,C,V>
- Direct Known Subclasses:
AsyncDataFrame
,ClosestDataFrame
,ColumnOrderDataFrame
,HeadDataFrame
,MultipageDataFrame
,SubsetDataFrame
,TailDataFrame
,WrappedDataFrame
public class ReMappedDataFrame<R,C,V> extends AbstractMutableDataFrame<R,C,V> implements MutableDataFrame<R,C,V>
A reindexed data frame.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ReMappedDataFrame.ReMappedRecipe<R,C>
-
Nested classes/interfaces inherited from class com.macrofocus.molap.dataframe.AbstractDataFrame
AbstractDataFrame.ColumnSeries
-
-
Constructor Summary
Constructors Constructor Description ReMappedDataFrame(DataFrame<R,C,V> dataFrame, ReMappedDataFrame.ReMappedRecipe<R,C> recipe)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class
getColumnClass(C column)
Returns the most specific superclass for all cell values in a columnUniqueIndex<C>
getColumnIndex()
Gets the index used to access the columns.DataFrame<R,C,V>
getOriginalDataFrame()
Series<C,?>
getRow(R row)
Returns a series of all the values of a given row.java.lang.Class
getRowClass(R row)
Returns the most specific superclass for all cell values in a row.UniqueIndex<R>
getRowIndex()
Gets the index used to access the rows.V
getValueAt(R row, C column)
Returns the value for the cell at the intersection of thecolumn
key androw
key.protected void
invalidate()
DataFrame
join(Series series, C[] columns)
protected void
originalDataFrameChanged()
protected void
scheduleUpdate()
void
setDataFrame(DataFrame<R,C,V> dataFrame)
void
setRecipe(ReMappedDataFrame.ReMappedRecipe<R,C> recipe)
void
setValueAt(R row, C column, V value)
Sets the value for the cell at the intersection of thecolumn
key androw
key.protected void
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, getColumnName, 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, getColumnName, 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
-
setRecipe
public void setRecipe(ReMappedDataFrame.ReMappedRecipe<R,C> recipe)
-
originalDataFrameChanged
protected void originalDataFrameChanged()
-
invalidate
protected void invalidate()
-
scheduleUpdate
protected void scheduleUpdate()
-
updateImmediatelly
protected void updateImmediatelly()
-
getRowClass
public java.lang.Class getRowClass(R row)
Description copied from interface:DataFrame
Returns the most specific superclass for all cell values in a row.- Specified by:
getRowClass
in interfaceDataFrame<R,C,V>
- Parameters:
row
- the key of the row- Returns:
- the common ancestor class of the object values in the row.
-
getColumnClass
public java.lang.Class getColumnClass(C column)
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>
- Parameters:
column
- the key of the column- Returns:
- the common ancestor class of the object values in the column.
-
getValueAt
public V getValueAt(R row, C column)
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>
- Parameters:
row
- the row key whose value is to be queriedcolumn
- the column key whose value is to be queried- Returns:
- the value Object at the specified cell
-
setValueAt
public void setValueAt(R row, C column, V value)
Description copied from interface:MutableDataFrame
Sets the value for the cell at the intersection of thecolumn
key androw
key.- Specified by:
setValueAt
in interfaceMutableDataFrame<R,C,V>
- Parameters:
row
- the row key whose value is to be changedcolumn
- the column key whose value is to be changedvalue
- the new value at the specified cell
-
getRow
public Series<C,?> getRow(R row)
Description copied from interface:DataFrame
Returns a series of all the values of a given row.
-
getRowIndex
public UniqueIndex<R> getRowIndex()
Description copied from interface:DataFrame
Gets the index used to access the rows.- Specified by:
getRowIndex
in interfaceDataFrame<R,C,V>
- Returns:
- the row index
-
getColumnIndex
public UniqueIndex<C> getColumnIndex()
Description copied from interface:DataFrame
Gets the index used to access the columns.- Specified by:
getColumnIndex
in interfaceDataFrame<R,C,V>
- Returns:
- the column index
-
-