Class NetricsArrayRecSrc

    • Constructor Summary

      Constructors 
      Constructor Description
      NetricsArrayRecSrc()
      Create an empty record source.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRecord​(NetricsRecord rec)
      Use this method to add records to the NetricsRecSrc.
      java.lang.Integer getCount()
      Get the count of records that have been retrieved from the record source.
      NetricsRecord getNext()
      As described for the interface.
      boolean hasNext()
      As described for the interface.
      void reset()
      As described for the interface.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NetricsArrayRecSrc

        public NetricsArrayRecSrc()
        Create an empty record source. You must use the addRecord method to put records into this record source.
    • Method Detail

      • hasNext

        public boolean hasNext()
        As described for the interface.
        Specified by:
        hasNext in interface NetricsBaseRecSrc
        Returns:
        True if there is another record, false otherwise
      • addRecord

        public void addRecord​(NetricsRecord rec)
        Use this method to add records to the NetricsRecSrc. The records will be stored and returned in the order they are added.
        Parameters:
        rec - the record to add
      • reset

        public void reset()
        As described for the interface.
        Specified by:
        reset in interface NetricsBaseRecSrc
      • getCount

        public java.lang.Integer getCount()
        Description copied from interface: NetricsBaseRecSrc
        Get the count of records that have been retrieved from the record source.
        Sources that don't support a count will return null.
        Specified by:
        getCount in interface NetricsBaseRecSrc
        Returns:
        The number of records that have been retrieved from the record source.