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

Define a way to let types create their own TypeInformation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 1.0.0, 1.2.0
    • None
    • None

    Description

      Currently, introducing new Types that should have specific TypeInformation requires

      • Either integration with the TypeExtractor
      • Or manually constructing the TypeInformation (potentially at every place) and using type hints everywhere.

      I propose to add a way to allow classes to create their own TypeInformation (like a static method "createTypeInfo()").

      To support generic nested types (like Optional / Either), the type extractor would provide a Map of what generic variables map to what types (deduced from the input). The class can use that to create the correct nested TypeInformation (possibly by calling the TypeExtractor again, passing the Map of generic bindings).

      Attachments

        Issue Links

          Activity

            People

              twalthr Timo Walther
              sewen Stephan Ewen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: