Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2139

Support filtering Joiner on BiConstraintStream

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 8.0.0.Beta1
    • None
    • None
    • None
    • 2020 Week 37-39 (from Sep 7)
    • 2
    • NEW
    • NEW

    Description

      The following piece of code:

      constraintFactory.fromUniquePair(..., Joiners.filtering(...))

      throws an exception:

      java.lang.IllegalArgumentException: The joiner class (class org.optaplanner.core.impl.score.stream.bi.FilteringBiJoiner) is not supported.

       While a similar constraint that uses a filter works correctly: 

      constraintFactory.fromUniquePair(...).filter(...))

        Expected result:

      The Joiner.filtering() should work the same was as the filter().

       

      Attachments

        Activity

          People

            lpetrovi@redhat.com Lukáš Petrovický (Inactive)
            rsynek@redhat.com Radovan Synek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: