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

CachedDataStream java example in the document is not correct

    XMLWordPrintableJSON

Details

    Description

      CachedDataStream java example in the document is not correct - https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/operators/overview/#datastream-rarr-cacheddatastream

       

      DataStream<Integer> dataStream = //...
      CachedDataStream<Integer> cachedDataStream = dataStream.cache();

      The example shows to invoke cache() on a DataStream instance but DataStream class does not have cache() method. The right usage is to call cache() on an instance of DataStreamSource/SideOutputDataStream/SingleOutputStreamOperator.
       

      Attachments

        Issue Links

          Activity

            People

              xuannan Xuannan Su
              prabhujoseph Prabhu Joseph
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: