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

Consider about POJO using method chaining when extract TypeInformation

    XMLWordPrintableJSON

Details

    Description

      I have a POJO class using method chaining such as :

      public static class CustomChainingPojoType {
      private String myField1;
      private int myField2;
      
      public CustomChainingPojoType() {
      }
      
      public CustomChainingPojoType setMyField1(String myField1) {
      this.myField1 = myField1;
      return this;
      }
      
      public CustomChainingPojoType setMyField2(int myField2) {
      this.myField2 = myField2;
      return this;
      }
      
      public String getMyField1() {
      return myField1;
      }
      
      public int getMyField2() {
      return myField2;
      }
      }

       

      It can not be analyze as POJO in TypeExtractor because the set method return type is not Void, How about add a condition that return type can be class self.

       

      Attachments

        Issue Links

          Activity

            People

              fmyblack jiawei chen
              fmyblack jiawei 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