Class SelectionDataFrame<R,​C,​V>

  • Type Parameters:
    R - the type of row keys
    C - the type of column keys
    V - the type of values
    All Implemented Interfaces:
    DataFrame<R,​C,​V>

    public class SelectionDataFrame<R,​C,​V>
    extends AbstractDataFrame<R,​C,​V>
    A row filterable data frame. Only the selected rows will be made visible by this data frame.
    • Constructor Detail

      • SelectionDataFrame

        public SelectionDataFrame​(AbstractDataFrame<R,​C,​V> dataFrame,
                                  com.macrofocus.selection.MutableSelection<R> filter)
    • Method Detail

      • getRowIndex

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

        public UniqueIndex<C> getColumnIndex()
        Description copied from interface: DataFrame
        Gets the index used to access the columns.
        Returns:
        the column index
      • 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​(C 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,
                            C 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
      • getRow

        public Series<C,​?> 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