Myasuka commented on a change in pull request #8091: [hotfix][docs] fix error 
in Process Function Doc
URL: https://github.com/apache/flink/pull/8091#discussion_r270832331
 
 

 ##########
 File path: docs/dev/stream/operators/process_function.md
 ##########
 @@ -199,14 +199,14 @@ case class CountWithTimestamp(key: String, count: Long, 
lastModified: Long)
 /**
   * The implementation of the ProcessFunction that maintains the count and 
timeouts
   */
-class CountWithTimeoutFunction extends ProcessFunction[(String, String), 
(String, Long)] {
+class CountWithTimeoutFunction extends KeyedProcessFunction[Tuple, (String, 
String), (String, Long)] {
 
   /** The state that is maintained by this process function */
   lazy val state: ValueState[CountWithTimestamp] = getRuntimeContext
     .getState(new ValueStateDescriptor[CountWithTimestamp]("myState", 
classOf[CountWithTimestamp]))
 
 
-  override def processElement(value: (String, String), ctx: Context, out: 
Collector[(String, Long)]): Unit = {
+  override def processElement(value: (String, String), ctx: 
KeyedProcessFunction[Tuple, (String, String), (String, Long)]#Context, out: 
Collector[(String, Long)]): Unit = {
 
 Review comment:
   The same question as above and the `#onTimer` method below should also take 
into consideration.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to