Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-47006

Refactor refill() method to isExhausted() in NioBufferedFileInputStream

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.0.0
    • None
    • Spark Core

    Description

      Currently, in NioBufferedFileInputStream, the refill() method is always invoked in a negated context (!refill()), which can be confusing and counter-intuitive. We can refactor the method so that it's no longer necessary to invert the result of the method call.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              LuciferYang Yang Jie
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: