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

Replace ValueSource context Map with a more concrete data type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • New

    Description

      Inspired by LUCENE-3973

      The context object used by ValueSource and friends is a raw Map that provides no type safety guarantees. In our current state, there are lots of warnings about unchecked casts, raw types, and generally unsafe code from the compiler's perspective.

      There are several common patterns and types of Objects that we store in the context. It would be beneficial to instead use a class with typed methods for get/set of Scorer, Weights, etc.

      Attachments

        1. LUCENE-6232.patch
          193 kB
          Mike Drob
        2. LUCENE-6232.patch
          193 kB
          Mike Drob
        3. LUCENE-6232.patch
          192 kB
          Mike Drob

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mdrob Mike Drob
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: