Class 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>
    • 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 the column key and row key.
        Parameters:
        integer - the row key whose value is to be queried
        s - 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
      • join

        public DataFrame join​(Series series,
                              java.lang.String[] strings)