anishshri-db commented on code in PR #45002: URL: https://github.com/apache/spark/pull/45002#discussion_r1481970354
########## sql/api/src/main/scala/org/apache/spark/sql/streaming/StatefulProcessor.scala: ########## @@ -60,4 +57,21 @@ private[sql] trait StatefulProcessor[K, I, O] extends Serializable { * any cleanup or teardown operations. */ def close (): Unit + + /** + * Function to set the stateful processor handle that will be used to interact with the state + * store and other stateful processor related operations. + * @param handle - instance of StatefulProcessorHandle + */ + final def setStatefulProcessorHandle(handle: StatefulProcessorHandle): Unit = { Review Comment: Maybe just say `setHandle` and `getHandle` for simplicity ? -- 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. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org