Class LongStatistics


  • public class LongStatistics
    extends Statistics<java.lang.Long>
    • Constructor Detail

      • LongStatistics

        public LongStatistics()
    • Method Detail

      • getStatsSize

        public int getStatsSize()
        The output of this method should be identical to the method "serializeStats(outputStream)".
        Specified by:
        getStatsSize in class Statistics<java.lang.Long>
      • initializeStats

        public void initializeStats​(long min,
                                    long max,
                                    long firstValue,
                                    long last,
                                    double sum)
      • getMinValue

        public java.lang.Long getMinValue()
        Specified by:
        getMinValue in class Statistics<java.lang.Long>
      • getMaxValue

        public java.lang.Long getMaxValue()
        Specified by:
        getMaxValue in class Statistics<java.lang.Long>
      • getFirstValue

        public java.lang.Long getFirstValue()
        Specified by:
        getFirstValue in class Statistics<java.lang.Long>
      • getLastValue

        public java.lang.Long getLastValue()
        Specified by:
        getLastValue in class Statistics<java.lang.Long>
      • updateStats

        public void updateStats​(long minValue,
                                long maxValue)
        Description copied from class: Statistics
        This method with two parameters is only used by unsequence which updates/inserts/deletes timestamp.
        Overrides:
        updateStats in class Statistics<java.lang.Long>
        Parameters:
        minValue - min timestamp
        maxValue - max timestamp
      • serializeStats

        public int serializeStats​(java.io.OutputStream outputStream)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • deserialize

        public void deserialize​(java.io.InputStream inputStream)
                         throws java.io.IOException
        Description copied from class: Statistics
        deserialize data from the inputStream.
        Specified by:
        deserialize in class Statistics<java.lang.Long>
        Parameters:
        inputStream - input stream
        Throws:
        java.io.IOException - exception when operating stream
      • deserialize

        public void deserialize​(java.nio.ByteBuffer byteBuffer)
        Specified by:
        deserialize in class Statistics<java.lang.Long>
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Statistics<java.lang.Long>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Statistics<java.lang.Long>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Statistics<java.lang.Long>