Package com.macrofocus.molap.importer
Class SimpleDataFrame
- java.lang.Object
-
- com.macrofocus.molap.dataframe.AbstractDataFrame<R,C,V>
-
- com.macrofocus.molap.dataframe.AbstractMutableDataFrame<java.lang.Integer,java.lang.String,java.lang.Object>
-
- com.macrofocus.molap.importer.SimpleDataFrame
-
- All Implemented Interfaces:
DataFrame<java.lang.Integer,java.lang.String,java.lang.Object>
,MutableDataFrame<java.lang.Integer,java.lang.String,java.lang.Object>
public class SimpleDataFrame extends AbstractMutableDataFrame<java.lang.Integer,java.lang.String,java.lang.Object>
Created by luc on 24/05/16.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.macrofocus.molap.dataframe.AbstractDataFrame
AbstractDataFrame.ColumnSeries
-
-
Constructor Summary
Constructors Constructor Description SimpleDataFrame(DataFrame reader, com.macrofocus.type.convert.AutoConverter autoConverter)
SimpleDataFrame(DataFrameReader reader, com.macrofocus.type.convert.AutoConverter autoConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class
getColumnClass(java.lang.String s)
Returns the most specific superclass for all cell values in a columnDefaultUniqueIndex<java.lang.String>
getColumnIndex()
Gets the index used to access the columns.Series<java.lang.String,?>
getRow(java.lang.Integer integer)
Returns a series of all the values of a given row.java.lang.Class
getRowClass(java.lang.Integer integer)
Returns the most specific superclass for all cell values in a row.UniqueIndex<java.lang.Integer>
getRowIndex()
Gets the index used to access the rows.java.lang.Object
getValueAt(java.lang.Integer row, java.lang.String column)
Returns the value for the cell at the intersection of thecolumn
key androw
key.DataFrame
join(Series series, java.lang.String[] strings)
void
setValueAt(java.lang.Integer row, java.lang.String column, java.lang.Object 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
-
-
-
-
Constructor Detail
-
SimpleDataFrame
public SimpleDataFrame(DataFrame reader, com.macrofocus.type.convert.AutoConverter autoConverter)
-
SimpleDataFrame
public SimpleDataFrame(DataFrameReader reader, com.macrofocus.type.convert.AutoConverter autoConverter)
-
-
Method Detail
-
getColumnIndex
public DefaultUniqueIndex<java.lang.String> getColumnIndex()
Description copied from interface:DataFrame
Gets the index used to access the columns.- Returns:
- the column index
-
getRowIndex
public UniqueIndex<java.lang.Integer> getRowIndex()
Description copied from interface:DataFrame
Gets the index used to access the rows.- Returns:
- the row index
-
getRowClass
public java.lang.Class getRowClass(java.lang.Integer integer)
Description copied from interface:DataFrame
Returns the most specific superclass for all cell values in a row.- Parameters:
integer
- the key of the row- Returns:
- the common ancestor class of the object values in the row.
-
getColumnClass
public java.lang.Class getColumnClass(java.lang.String s)
Description copied from interface:DataFrame
Returns the most specific superclass for all cell values in a column- Parameters:
s
- the key of the column- Returns:
- the common ancestor class of the object values in the column.
-
getValueAt
public java.lang.Object getValueAt(java.lang.Integer row, java.lang.String column)
Description copied from interface:DataFrame
Returns the value for the cell at the intersection of thecolumn
key androw
key.- 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(java.lang.Integer row, java.lang.String column, java.lang.Object 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
-
getRow
public Series<java.lang.String,?> getRow(java.lang.Integer integer)
Description copied from interface:DataFrame
Returns a series of all the values of a given row.- Parameters:
integer
- the row key- Returns:
- a Series object
-
-