Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-12121

Use composition instead of inheritance for the InternalKeyContext logic in backend

    XMLWordPrintableJSON

Details

    Description

      Commonly it's recommended to favor composition over inheritance in java design, but currently in keyed backend we're using inheritance for the InternalKeyContext logic, and here we propose to change to the composition way.

      Another advantage of changing to the composition way is that we could remove the requirement of a heap backend instance when constructing HeapRestoreOperation, and further making sure all fields are final when constructing the HeapKeyedStateBackend

      Attachments

        Issue Links

          Activity

            People

              liyu Yu Li
              liyu Yu Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m