Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-825

BloomFilter: drop SimpleHasher.getDefaultIncrement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Done
    • None
    • 4.5
    • None

    Description

      src/main/java/org/apache/commons/collections4/bloomfilter/SimpleHasher.java
           * </p>
           * @return The default increment to use when the requested increment is zero.
           */
          public long getDefaultIncrement() {
      Member
      

      @aherbert aherbert on 27 Feb

      I think this should be dropped. The default increment will fix the rare case 1 in 2^64 that the increment is zero. But it does not fix the more common case (1 in nbits) that the increment for the shape will be zero. Dropping this simplifies the constructor. A zero increment can be handled later.
      @Claude-at-Instaclustr Claude-at-Instaclustr on 10 Mar

      This is to handle the case where an existing implementation has chosen a different default value while still allowing the commons code to drop in place.

      Attachments

        Issue Links

          Activity

            People

              claude Claude Warren
              claude Claude Warren
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: