Class DerivedDataFrame<R,​C,​V>

    • Constructor Detail

      • DerivedDataFrame

        public DerivedDataFrame​(DataFrame<R,​C,​V> dataFrame)
    • 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​(DerivedDataFrame.Column<R,​V> 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,
                            DerivedDataFrame.Column<R,​V> c)
        Description copied from interface: DataFrame
        Returns the value for the cell at the intersection of the column key and row key.
        Parameters:
        r - the row key whose value is to be queried
        c - the column key whose value is to be queried
        Returns:
        the value Object at the specified cell
      • getRowIndex

        public UniqueIndex<R> getRowIndex()
        Description copied from interface: DataFrame
        Gets the index used to access the rows.
        Returns:
        the row index
      • addDataFrameColumns

        public void addDataFrameColumns​(C... columns)
      • setValueAt

        public void setValueAt​(R row,
                               DerivedDataFrame.Column<R,​V> column,
                               V 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<DerivedDataFrame.Column<R,​V>,​?> 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