Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-1394

Allow RegExFilter subclass to call setNegate.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.5.0
    • 1.4.4, 1.5.1, 1.6.0
    • None
    • None

    Description

      I wrote an iterator that sets RegExFilter options inside its init() method. I created a HashMap to hold options, then added entries for RegExFilter.COLF_REGEX. However, the Filter.NEGATE is private and the setNegate function only accepts an IteratorSetting option which I don't have inside my iterator's init() method (true?). So I simply used a "negate" string literal which I don't like.

      I propose making NEGATE public as is done in the RegExFilter class. Any reason not to? Is there a better approach?

      Attachments

        Activity

          People

            ctubbsii Christopher Tubbs
            medined David Medinets
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: