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

Make BufferedIndexInput work on a ByteBuffer

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.0, 8.6
    • None
    • None
    • New

    Description

      Currently BufferedIndexInput works on a byte[] but its main implementation, in NIOFSDirectory, has to implement a hack to maintain a ByteBuffer view of it that it can use in calls to the FileChannel API. Maybe we should instead make BufferedIndexInput work directly on a ByteBuffer? This would also help reuse the existing ByteBuffer#get(|Short|Int|long) methods instead of duplicating them from DataInput.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jpountz Adrien Grand
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 1h 40m
                  1h 40m