class pyspark.sql.streaming.ForeachBatchFunction(sql_ctx, func)[source]¶
This is the Python implementation of Java interface ‘ForeachBatchFunction’. This wraps
the user-defined ‘foreachBatch’ function such that it can be called from the JVM when
the query is active.