Class BinaryStatistics

    • Method Detail

      • updateStats

        public void updateStats​(Binary value)
        Description copied from class: Statistics
        updates statistics min and max using the passed value
        Overrides:
        updateStats in class Statistics<Binary>
        Parameters:
        value - value to use to update min and max
      • mergeStatisticsMinMax

        public void mergeStatisticsMinMax​(Statistics stats)
        Description copied from class: Statistics
        Abstract method to merge this statistics min and max with the values of the parameter object. Does not do any checks, only called internally.
        Specified by:
        mergeStatisticsMinMax in class Statistics<Binary>
        Parameters:
        stats - Statistics object to merge with
      • setMinMaxFromBytes

        public void setMinMaxFromBytes​(byte[] minBytes,
                                       byte[] maxBytes)
        Sets min and max values, re-uses the byte[] passed in. Any changes made to byte[] will be reflected in min and max values as well.
        Specified by:
        setMinMaxFromBytes in class Statistics<Binary>
        Parameters:
        minBytes - byte array to set the min value to
        maxBytes - byte array to set the max value to
      • getMaxBytes

        public byte[] getMaxBytes()
        Description copied from class: Statistics
        Abstract method to return the max value as a byte array
        Specified by:
        getMaxBytes in class Statistics<Binary>
        Returns:
        byte array corresponding to the max value
      • getMinBytes

        public byte[] getMinBytes()
        Description copied from class: Statistics
        Abstract method to return the min value as a byte array
        Specified by:
        getMinBytes in class Statistics<Binary>
        Returns:
        byte array corresponding to the min value
      • isSmallerThan

        public boolean isSmallerThan​(long size)
        Description copied from class: Statistics
        Abstract method to return whether the min and max values fit in the given size.
        Specified by:
        isSmallerThan in class Statistics<Binary>
        Parameters:
        size - a size in bytes
        Returns:
        true iff the min and max values are less than size bytes
      • isSmallerThanWithTruncation

        public boolean isSmallerThanWithTruncation​(long size,
                                                   int truncationLength)
      • updateStats

        @Deprecated
        public void updateStats​(Binary min_value,
                                Binary max_value)
        Deprecated.
        use updateStats(Binary), will be removed in 2.0.0
        Parameters:
        min_value - a min binary
        max_value - a max binary
      • initializeStats

        @Deprecated
        public void initializeStats​(Binary min_value,
                                    Binary max_value)
        Deprecated.
        use updateStats(Binary), will be removed in 2.0.0
        Parameters:
        min_value - a min binary
        max_value - a max binary