Class UnivalArray


  • class UnivalArray
    extends Object
    This class is used to read a unival from a file unival is a rrdtool type, defined in rrd_format.h
    Author:
    Fabrice Bacchella fbacchella@spamcop.net
    • Constructor Detail

      • UnivalArray

        public UnivalArray​(RRDFile file,
                           int size)
                    throws IOException
        Read an UnivalArray from a rrd native file at the current position
        Parameters:
        file - the RRdFile
        size - the numer of elements in the array
        Throws:
        IOException - if any.
    • Method Detail

      • getLong

        public long getLong​(Enum<?> e)

        getLong.

        Parameters:
        e - a Enum object.
        Returns:
        a long.
      • getDouble

        public double getDouble​(Enum<?> e)

        getDouble.

        Parameters:
        e - a Enum object.
        Returns:
        a double.