Package com.macrofocus.molap.importer
Class ResultSetDataFrame
- java.lang.Object
-
- com.macrofocus.molap.dataframe.AbstractDataFrame<java.lang.Integer,java.lang.String,java.lang.Object>
-
- com.macrofocus.molap.importer.ResultSetDataFrame
-
- All Implemented Interfaces:
DataFrame<java.lang.Integer,java.lang.String,java.lang.Object>
public class ResultSetDataFrame extends AbstractDataFrame<java.lang.Integer,java.lang.String,java.lang.Object>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.macrofocus.molap.dataframe.AbstractDataFrame
AbstractDataFrame.ColumnSeries
-
-
Constructor Summary
Constructors Constructor Description ResultSetDataFrame(com.macrofocus.data.db.DatabaseDriver driver, java.sql.ResultSet rs, com.macrofocus.type.convert.AutoConverter autoConverter)
ResultSetDataFrame(java.sql.ResultSet rs)
-
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 integer, java.lang.String s)
Returns the value for the cell at the intersection of thecolumn
key androw
key.DataFrame
join(Series series, java.lang.String[] strings)
-
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, reindexRows, reindexRows, remapColumns, removeColumns, removeDataFrameListener, removeDataFrameListeners, removeDuplicates, rows
-
-
-
-
Constructor Detail
-
ResultSetDataFrame
public ResultSetDataFrame(java.sql.ResultSet rs) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
ResultSetDataFrame
public ResultSetDataFrame(com.macrofocus.data.db.DatabaseDriver driver, java.sql.ResultSet rs, com.macrofocus.type.convert.AutoConverter autoConverter) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-
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 integer, java.lang.String s)
Description copied from interface:DataFrame
Returns the value for the cell at the intersection of thecolumn
key androw
key.- Parameters:
integer
- the row key whose value is to be querieds
- the column key whose value is to be queried- Returns:
- the value Object 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
-
-