Package com.macrofocus.molap.dataframe
Class CachedDataFrame<R,C,V>
- java.lang.Object
-
- com.macrofocus.molap.dataframe.AbstractDataFrame<R,C,V>
-
- com.macrofocus.molap.dataframe.CachedDataFrame<R,C,V>
-
- All Implemented Interfaces:
DataFrame<R,C,V>
public class CachedDataFrame<R,C,V> extends AbstractDataFrame<R,C,V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.macrofocus.molap.dataframe.AbstractDataFrame
AbstractDataFrame.ColumnSeries
-
-
Constructor Summary
Constructors Constructor Description CachedDataFrame(DataFrame<R,C,V> dataFrame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Series<R,V>
getColumn(C c)
Returns a series of all the values of a given column.java.lang.Class
getColumnClass(C c)
Returns the most specific superclass for all cell values in a columnUniqueIndex<C>
getColumnIndex()
Gets the index used to access the columns.Series<C,?>
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, C c)
Returns the value for the cell at the intersection of thecolumn
key androw
key.DataFrame
join(Series series, C[] cs)
-
Methods inherited from class com.macrofocus.molap.dataframe.AbstractDataFrame
addDataFrameListener, addWeakDataFrameListener, aggregate, aggregate, append, appendAndReindex, benchmark, columns, filter, getCentroid, 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, 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(C 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, C 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
-
getRow
public Series<C,?> getRow(R r)
Description copied from interface:DataFrame
Returns a series of all the values of a given row.- Parameters:
r
- the row key- Returns:
- a Series object
-
getColumn
public Series<R,V> getColumn(C c)
Description copied from interface:DataFrame
Returns a series of all the values of a given column.
-
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<C> getColumnIndex()
Description copied from interface:DataFrame
Gets the index used to access the columns.- Returns:
- the column index
-
-