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

Make BufferedIndexInput work on a ByteBuffer

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: master (9.0), 8.6
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      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

              • Assignee:
                Unassigned
                Reporter:
                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