Package com.macrofocus.molap.dataframe
Class DerivedDataFrame<R,C,V>
- java.lang.Object
-
- com.macrofocus.molap.dataframe.AbstractDataFrame<R,C,V>
-
- com.macrofocus.molap.dataframe.AbstractMutableDataFrame<R,DerivedDataFrame.Column<R,V>,V>
-
- com.macrofocus.molap.dataframe.DerivedDataFrame<R,C,V>
-
- All Implemented Interfaces:
DataFrame<R,DerivedDataFrame.Column<R,V>,V>
,MutableDataFrame<R,DerivedDataFrame.Column<R,V>,V>
public class DerivedDataFrame<R,C,V> extends AbstractMutableDataFrame<R,DerivedDataFrame.Column<R,V>,V>
Created by luc on 09/03/16.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DerivedDataFrame.AbstractColumn<R,V>
static interface
DerivedDataFrame.Column<R,V>
static class
DerivedDataFrame.ColumnEvent<R,V>
static interface
DerivedDataFrame.ColumnListener<R,V>
static class
DerivedDataFrame.DataFrameColumn<R,C,V>
static class
DerivedDataFrame.DerivedColumn<R,C,V>
-
Nested classes/interfaces inherited from class com.macrofocus.molap.dataframe.AbstractDataFrame
AbstractDataFrame.ColumnSeries
-
-
Constructor Summary
Constructors Constructor Description DerivedDataFrame(DataFrame<R,C,V> dataFrame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumn(int i, DerivedDataFrame.Column<R,V> column)
void
addColumn(DerivedDataFrame.Column<R,V> column)
void
addColumns(DerivedDataFrame.Column<R,V>... columns)
DerivedDataFrame.DataFrameColumn
addDataFrameColumn(C column)
void
addDataFrameColumns(C... columns)
java.lang.Class
getColumnClass(DerivedDataFrame.Column<R,V> c)
Returns the most specific superclass for all cell values in a columnUniqueIndex<DerivedDataFrame.Column<R,V>>
getColumnIndex()
Gets the index used to access the columns.Series<DerivedDataFrame.Column<R,V>,?>
getRow(R r)
Returns a series of all the values of a given row.java.lang.Class
getRowClass(R r)
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 r, DerivedDataFrame.Column<R,V> c)
Returns the value for the cell at the intersection of thecolumn
key androw
key.DataFrame
join(Series series, DerivedDataFrame.Column<R,V>[] cs)
void
setValueAt(R row, DerivedDataFrame.Column<R,V> column, V value)
Sets the value for the cell at the intersection of thecolumn
key androw
key.-
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
-
-
-
-
Method Detail
-
getRowClass
public java.lang.Class getRowClass(R r)
Description copied from interface:DataFrame
Returns the most specific superclass for all cell values in a row.- Parameters:
r
- the key of the row- Returns:
- the common ancestor class of the object values in the row.
-
getColumnClass
public java.lang.Class getColumnClass(DerivedDataFrame.Column<R,V> c)
Description copied from interface:DataFrame
Returns the most specific superclass for all cell values in a column- 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, DerivedDataFrame.Column<R,V> c)
Description copied from interface:DataFrame
Returns the value for the cell at the intersection of thecolumn
key androw
key.- 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
-
getRowIndex
public UniqueIndex<R> getRowIndex()
Description copied from interface:DataFrame
Gets the index used to access the rows.- Returns:
- the row index
-
getColumnIndex
public UniqueIndex<DerivedDataFrame.Column<R,V>> getColumnIndex()
Description copied from interface:DataFrame
Gets the index used to access the columns.- Returns:
- the column index
-
addDataFrameColumns
public void addDataFrameColumns(C... columns)
-
addDataFrameColumn
public DerivedDataFrame.DataFrameColumn addDataFrameColumn(C column)
-
addColumns
public void addColumns(DerivedDataFrame.Column<R,V>... columns)
-
addColumn
public void addColumn(DerivedDataFrame.Column<R,V> column)
-
addColumn
public void addColumn(int i, DerivedDataFrame.Column<R,V> column)
-
setValueAt
public void setValueAt(R row, DerivedDataFrame.Column<R,V> column, V value)
Description copied from interface:MutableDataFrame
Sets the value for the cell at the intersection of thecolumn
key androw
key.- 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
-
join
public DataFrame join(Series series, DerivedDataFrame.Column<R,V>[] cs)
-
-