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

Add explicit transformer from SerializableOptional to Optional

    XMLWordPrintableJSON

Details

    Description

      We introduce SerializableOptional to represent return value that of Optional and transported cross network.

      The purpose is reasonable. However, a wart is inside SerializableOptional. Calling SerializableOptional#map will returns a Optional, which might surprise contributors if they want to chain operations and get a SerializableOptional as final result(to another transport maybe).

      Semantically return value of SerializableOptional#map should be SerializableOptional, and for interoperation, we could introduce a SerializableOptional#toOptional which easily adapt to the correct type.

      cc the original author till.rohrmann

      Attachments

        1. FLINK-12822.patch
          2 kB
          Zili Chen

        Issue Links

          Activity

            People

              tison Zili Chen
              tison Zili Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 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