Class LinksDataFrame<Node,​Link,​Column,​Value>

  • All Implemented Interfaces:
    DataFrame<Link,​Column,​Value>

    public class LinksDataFrame<Node,​Link,​Column,​Value>
    extends AbstractDataFrame<Link,​Column,​Value>
    • Constructor Detail

      • LinksDataFrame

        public LinksDataFrame​(DataFrame<Node,​Column,​Value> indexedNodesDataFrame,
                              DataFrame<Link,​Column,​Value> rawLinkDataFrame,
                              com.macrofocus.selection.SingleSelection<Column> from,
                              com.macrofocus.selection.SingleSelection<Column> to,
                              com.macrofocus.selection.SingleSelection<Column> weight,
                              com.macrofocus.selection.MutableSingleSelection<Column> aggregateBy)
    • Method Detail

      • getRowClass

        public java.lang.Class getRowClass​(Link link)
        Description copied from interface: DataFrame
        Returns the most specific superclass for all cell values in a row.
        Parameters:
        link - the key of the row
        Returns:
        the common ancestor class of the object values in the row.
      • getColumnClass

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

        public Value getValueAt​(Link link,
                                Column column)
        Description copied from interface: DataFrame
        Returns the value for the cell at the intersection of the column key and row key.
        Parameters:
        link - 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
      • getRow

        public Series<Column,​?> getRow​(Link link)
        Description copied from interface: DataFrame
        Returns a series of all the values of a given row.
        Parameters:
        link - the row key
        Returns:
        a Series object
      • getRowIndex

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

        public UniqueIndex<Column> getColumnIndex()
        Description copied from interface: DataFrame
        Gets the index used to access the columns.
        Returns:
        the column index
      • getFrom

        public Node getFrom​(Link link)
      • getTo

        public Node getTo​(Link link)