Class ReIndexedDataFrame<R,​C,​V,​X,​Y>

    • Field Detail

      • dataFrame

        protected final DataFrame<X,​Y,​V> dataFrame
    • Method Detail

      • dataFrameChanged

        protected void dataFrameChanged()
      • getRowClass

        public java.lang.Class getRowClass​(R row)
        Description copied from interface: DataFrame
        Returns the most specific superclass for all cell values in a row.
        Specified by:
        getRowClass in interface DataFrame<R,​C,​V>
        Parameters:
        row - the key of the row
        Returns:
        the common ancestor class of the object values in the row.
      • getColumnClass

        public java.lang.Class getColumnClass​(C column)
        Description copied from interface: DataFrame
        Returns the most specific superclass for all cell values in a column
        Specified by:
        getColumnClass in interface DataFrame<R,​C,​V>
        Parameters:
        column - the key of the column
        Returns:
        the common ancestor class of the object values in the column.
      • getValueAt

        public V getValueAt​(R row,
                            C column)
        Description copied from interface: DataFrame
        Returns the value for the cell at the intersection of the column key and row key.
        Specified by:
        getValueAt in interface DataFrame<R,​C,​V>
        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​(R row,
                               C column,
                               V value)
        Description copied from interface: MutableDataFrame
        Sets the value for the cell at the intersection of the column key and row key.
        Specified by:
        setValueAt in interface MutableDataFrame<R,​C,​V>
        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<C,​?> getRow​(R row)
        Description copied from interface: DataFrame
        Returns a series of all the values of a given row.
        Specified by:
        getRow in interface DataFrame<R,​C,​V>
        Parameters:
        row - the row key
        Returns:
        a Series object
      • getColumn

        public Series<R,​V> getColumn​(C column)
        Description copied from interface: DataFrame
        Returns a series of all the values of a given column.
        Specified by:
        getColumn in interface DataFrame<R,​C,​V>
        Overrides:
        getColumn in class AbstractDataFrame<R,​C,​V>
        Parameters:
        column - the row key
        Returns:
        a Series object
      • getRowIndex

        public UniqueIndex<R> getRowIndex()
        Description copied from interface: DataFrame
        Gets the index used to access the rows.
        Specified by:
        getRowIndex in interface DataFrame<R,​C,​V>
        Returns:
        the row index
      • getColumnIndex

        public UniqueIndex<C> getColumnIndex()
        Description copied from interface: DataFrame
        Gets the index used to access the columns.
        Specified by:
        getColumnIndex in interface DataFrame<R,​C,​V>
        Returns:
        the column index