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

Investigate to use FileoutputStream instead of RandomAccessFile in FSIndexOutput

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9, 6.0
    • Component/s: core/store
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      We no longer allow seeking in IndexOutput, so there is no need to use RandomAccessFile. We can change this with a < 1 KiB patch.

      Further improvements would be to merge this with OutputStreamIndexOutput, so we get many simplifications.

      There is also no reason anymore to separate DataOutput from IndexOutput. The only additional thing is IndexOutput#getFilePointer(), which is handled by an internal counter (does not use getFilePointer of the underlying RAF) and checksums.

        Attachments

        1. LUCENE-5678.patch
          23 kB
          Uwe Schindler
        2. LUCENE-5678.patch
          23 kB
          Uwe Schindler
        3. LUCENE-5678.patch
          23 kB
          Uwe Schindler
        4. LUCENE-5678.patch
          14 kB
          Uwe Schindler
        5. LUCENE-5678.patch
          14 kB
          Uwe Schindler
        6. LUCENE-5678.patch
          2 kB
          Uwe Schindler
        7. LUCENE-5678-4x.patch
          34 kB
          Uwe Schindler

          Issue Links

            Activity

              People

              • Assignee:
                thetaphi Uwe Schindler
                Reporter:
                thetaphi Uwe Schindler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: