public < T > ForeachRddFunction < T > foreachRddFunction ( Class < ? extends VoidFunction < T > > springBeanClass ) { return new ForeachRddFunction <> ( voidFunction ( springBeanClass ) ) ; }
Create a new ForeachRddFunction which implements Spark s VoidFunction interface .