Skip to content

Replace ValueSource context Map with a more concrete data type [LUCENE-6232] #7294

@asfimport

Description

@asfimport

Inspired by #5046

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.


Migrated from LUCENE-6232 by Mike Drob (@madrob), resolved Jun 22 2020
Attachments: LUCENE-6232.patch (versions: 3)
Linked issues:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions