Class BooleanStatistics


  • public class BooleanStatistics
    extends Statistics<java.lang.Boolean>
    • Constructor Detail

      • BooleanStatistics

        public BooleanStatistics()
    • 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.Boolean>
      • initializeStats

        public void initializeStats​(boolean firstValue,
                                    boolean lastValue,
                                    long sum)
        initialize boolean Statistics.
        Parameters:
        firstValue - first boolean value
        lastValue - last boolean value
      • getMinValue

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

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

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

        public java.lang.Boolean getLastValue()
        Specified by:
        getLastValue in class Statistics<java.lang.Boolean>
      • 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.Boolean>
        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.Boolean>
      • equals

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

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

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