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

Refactor DirectReader and remove heavy code duplication

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • core/other
    • None
    • New

    Description

      DirectReader creates a dozen of inner classes blowing up the JAR file that just contain the same code over an over.

      This issue will refactor DirectReader like this:

      • Let DirectReader implement LongValues directly
      • The LongValues get method is implemented by calling LongUnaryOperator functional interface
      • the LongUnaryOperator is a method reference to one of the new private getXY() methods, which are specialization for all supported bit sizes.

      Attachments

        Issue Links

          Activity

            People

              uschindler Uwe Schindler
              uschindler Uwe Schindler
              Votes:
              0 Vote for this issue
              Watchers:
              0 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 - 1.5h
                  1.5h