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

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