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

Make BatchWriter, ConditionalWriter, and ScannerBase extend AutoCloseable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • None
    • None

    Description

      BatchWriter, ConditionalWriter, Scanner, and BatchScanner all have close Methods. Howerver because they do not implement AutoCloseable they can not be used with try-with-resources.

      It would be simple to add AutoCloseable to all of these. I think this change should only be made in a minor release because it allows writing code that will not work with older versions.

      Attachments

        Issue Links

          Activity

            People

              kturner Keith Turner
              kturner Keith Turner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h
                  3h