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

Update state reader to return InputFormat

    XMLWordPrintableJSON

Details

    Description

      The state processor api on read currently takes an ExecutionEnvironment and returns a DataSet. As Flink now supports Bounded DataStream we want to support that as well but not have to maintain parallel apis. To that end we propose the following.

      Introduce a new `load` method to Savepoint.

       

      SavepointReader Savepoint#load(String path, StateBackend backend);
      

      SavepointReader will contain the same read methods as ExistingSavepoint but they will instead return InputFormat<T, ?>. This way the input format can be used with either DataSet, DataStream, or Table API.

       

      The reader methods in ExistingSavepoint should be deprecated.

       

      Additionally, OperatorStateInputFormat and KeyedStateInputFormat should both now extend ResultTypeQueryable so users get efficient serializer for their reads.

       

      Attachments

        Issue Links

          Activity

            People

              qinjunjerry Jun Qin
              sjwiesman Seth Wiesman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: