Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10139

ExternalRefSorter should return a covariant with a subtype of BytesRefIterator that is Closeable

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 9.0
    • None
    • None
    • New

    Description

      This is a trivial cleanup to make ExternalRefSorter return a covariant subtype of BytesRefIterator that is Closeable. This way callers of iterator() have a way of making sure I/O resources are closed without fully exhausting the iterator (in case of exceptions happening somewhere while scanning the byte refs, for example).

      Attachments

        Issue Links

          Activity

            People

              dweiss Dawid Weiss
              dweiss Dawid Weiss
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 10m
                  10m