dylanwong250 commented on code in PR #52202: URL: https://github.com/apache/spark/pull/52202#discussion_r2330687223
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/operators/stateful/join/SymmetricHashJoinStateManager.scala: ########## @@ -1280,3 +1298,35 @@ object SymmetricHashJoinStateManager { } } } + +/** + * Options controlling snapshot-based state replay. + */ +case class SnapshotOptions( + snapshotVersion: Long, + endVersion: Long, + startKeyToNumValuesStateStoreCkptId: Option[String] = None, + startKeyWithIndexToValueStateStoreCkptId: Option[String] = None, + endKeyToNumValuesStateStoreCkptId: Option[String] = None, + endKeyWithIndexToValueStateStoreCkptId: Option[String] = None) { + def getKeyToNumValuesHandlerOpts(): HandlerSnapshotOptions = + HandlerSnapshotOptions( + snapshotVersion = snapshotVersion, + endVersion = endVersion, + startStateStoreCkptId = startKeyToNumValuesStateStoreCkptId, + endStateStoreCkptId = endKeyToNumValuesStateStoreCkptId) + + def getKeyWithIndexToValueHandlerOpts(): HandlerSnapshotOptions = + HandlerSnapshotOptions( + snapshotVersion = snapshotVersion, + endVersion = endVersion, + startStateStoreCkptId = startKeyWithIndexToValueStateStoreCkptId, + endStateStoreCkptId = endKeyWithIndexToValueStateStoreCkptId) + } + +/** Snapshot options specialized for a single state store handler. */ +case class HandlerSnapshotOptions( Review Comment: Made private[join] -- 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