Class AbstractRRA

  • Direct Known Subclasses:
    RRA, RRA

    public abstract class AbstractRRA
    extends Object
    The Abstract RRA (Round Robin Archives).
    Author:
    Alejandro Galue
    • Constructor Detail

      • AbstractRRA

        public AbstractRRA()
    • Method Detail

      • getPdpPerRow

        public Long getPdpPerRow()
        Gets the PDP (Primary Data Points) per row.
        Returns:
        the PDP (Primary Data Points) per row
      • setPdpPerRow

        public void setPdpPerRow​(Long pdpPerRow)
        Sets the PDP (Primary Data Points) per row.
        Parameters:
        pdpPerRow - the new PDP (Primary Data Points) per row
      • getRows

        public List<Row> getRows()
        Gets the rows.
        Returns:
        the rows
      • setRows

        public void setRows​(List<Row> rows)
        Sets the rows.
        Parameters:
        rows - the new rows
      • formatEquals

        public boolean formatEquals​(AbstractRRA rra)
        Format equals.
        Parameters:
        rra - the RRA object
        Returns:
        true, if the format is equal
      • formatMergeable

        public abstract boolean formatMergeable​(AbstractRRA sourceRra)
        Format mergeable.

        Two RRA can be merged if and only if the Consolidation Function and the PDP per row are the same.

        The amount of rows is not strict for a merge operation.

        • If the sourceRra has more rows than the current RRA, the result will be truncated by the number of rows on the current RRA.
        • If the sourceRra has less rows than the current RRA, the result will have a NaN window as big as the different between the number of rows.
        Parameters:
        sourceRra - the source RRA object
        Returns:
        true, if the format is mergeable
      • hasAverageAsCF

        public abstract boolean hasAverageAsCF()
        Checks for average as consolidation function.
        Returns:
        true, if the consolidation function is AVERAGE