Class QueryDataFrame<C>

    • Constructor Detail

      • QueryDataFrame

        public QueryDataFrame​(Query query,
                              boolean includeIndex)
    • Method Detail

      • drillDown

        public AggregateDataFrame<C> drillDown​(C... columns)
        Description copied from interface: AggregateDataFrame
        Returns a new data frame that group the rows by values of the specified columns.
        Specified by:
        drillDown in interface AggregateDataFrame<C>
        Parameters:
        columns - the columns
        Returns:
        a new data frame aggregating the values according to the new criteria
      • drillUp

        public AggregateDataFrame<C> drillUp()
        Description copied from interface: AggregateDataFrame
        Returns a new data frame with the last group by level removed, i.e. one level up.
        Specified by:
        drillUp in interface AggregateDataFrame<C>
        Returns:
        a new data frame aggregating the values according to the new criteria
      • order

        public AggregateDataFrame<C> order​(Aggregation... aggregations)
        Description copied from interface: AggregateDataFrame
        Returns a new data frame that change the order of the groups according to the specified aggregation methods.
        Specified by:
        order in interface AggregateDataFrame<C>
        Parameters:
        aggregations - the aggregation methods
        Returns:
        a new data frame
      • getRowClass

        public java.lang.Class getRowClass​(Group row)
        Description copied from interface: DataFrame
        Returns the most specific superclass for all cell values in a row.
        Specified by:
        getRowClass in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
        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​(java.lang.String column)
        Description copied from interface: DataFrame
        Returns the most specific superclass for all cell values in a column
        Specified by:
        getColumnClass in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
        Parameters:
        column - the key of the column
        Returns:
        the common ancestor class of the object values in the column.
      • getValueAt

        public java.lang.Object getValueAt​(Group path,
                                           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.
        Specified by:
        getValueAt in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
        Parameters:
        path - 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<java.lang.String,​?> getRow​(Group row)
        Description copied from interface: DataFrame
        Returns a series of all the values of a given row.
        Specified by:
        getRow in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
        Parameters:
        row - the row key
        Returns:
        a Series object
      • getColumn

        public Series<Group,​java.lang.Object> getColumn​(java.lang.String column)
        Description copied from interface: DataFrame
        Returns a series of all the values of a given column.
        Specified by:
        getColumn in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
        Overrides:
        getColumn in class AbstractDataFrame<Group,​java.lang.String,​java.lang.Object>
        Parameters:
        column - the row key
        Returns:
        a Series object
      • rows

        public java.lang.Iterable<Group> rows()
        Description copied from interface: DataFrame
        Returns the row keys.
        Specified by:
        rows in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
        Overrides:
        rows in class AbstractDataFrame<Group,​java.lang.String,​java.lang.Object>
        Returns:
        the row keys
      • columns

        public java.lang.Iterable<java.lang.String> columns()
        Description copied from interface: DataFrame
        Returns the column keys.
        Specified by:
        columns in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
        Overrides:
        columns in class AbstractDataFrame<Group,​java.lang.String,​java.lang.Object>
        Returns:
        the column keys
      • getColumnAddress

        public int getColumnAddress​(java.lang.String column)
        Description copied from interface: DataFrame
        Returns the absolute index for the specified column key. This is the inverse of DataFrame.getColumnKey(int).
        Specified by:
        getColumnAddress in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
        Overrides:
        getColumnAddress in class AbstractDataFrame<Group,​java.lang.String,​java.lang.Object>
        Parameters:
        column - the column key
        Returns:
        the absolute index of the specified key.
      • getRowCount

        public int getRowCount()
        Description copied from interface: DataFrame
        Returns the number of rows contained by the this data frame.
        Specified by:
        getRowCount in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
        Overrides:
        getRowCount in class AbstractDataFrame<Group,​java.lang.String,​java.lang.Object>
        Returns:
        the number of rows.
      • getColumnCount

        public int getColumnCount()
        Description copied from interface: DataFrame
        Returns the number of columns contained by this data frame.
        Specified by:
        getColumnCount in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
        Overrides:
        getColumnCount in class AbstractDataFrame<Group,​java.lang.String,​java.lang.Object>
        Returns:
        the number of columns.
      • reindexRows

        public DataFrame<MultiKey,​java.lang.String,​java.lang.Object> reindexRows​(java.lang.String... rows)
        Description copied from interface: DataFrame
        Returns a new data frame reindexed using the values coming from the specified rows.
        Specified by:
        reindexRows in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
        Overrides:
        reindexRows in class AbstractDataFrame<Group,​java.lang.String,​java.lang.Object>
        Parameters:
        rows - the columns to use for the label values
        Returns:
        the reindexed data frame.
      • join

        public DataFrame join​(Series series,
                              java.lang.String[] columns)
        Specified by:
        join in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
      • getRowIndex

        public UniqueIndex<Group> getRowIndex()
        Description copied from interface: DataFrame
        Gets the index used to access the rows.
        Specified by:
        getRowIndex in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
        Returns:
        the row index
      • getColumnIndex

        public UniqueIndex<java.lang.String> getColumnIndex()
        Description copied from interface: DataFrame
        Gets the index used to access the columns.
        Specified by:
        getColumnIndex in interface DataFrame<Group,​java.lang.String,​java.lang.Object>
        Returns:
        the column index