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

Common CachedLookupFunction for All connector

    XMLWordPrintableJSON

Details

    • coming soon. lets me know what's your opinions. Thanks.

    Description

      shortly, it's a decorator pattern:

      1. A CachedLookupFunction extends TableFunction<Row>
      2. when needing the cache feature, the only thing is to construct this CachedLookupFunction with the real LookupFunction's instance.  so it's can be used by any connector.
      3. CachedLookupFunction will send the result directly if data has been cached or, to invoke the real LookupFunction to get data and send it after this data has been cached.
      4. will have more cache strategies such as All.

      should add a new module called flink-connector-common.

      we also can provide a common Async LookupFunction using this pattern instead of too much implementation.

      Attachments

        Issue Links

          Activity

            People

              chancelq Chance Li
              chancelq Chance Li
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m