Guest User

Untitled

a guest
Jun 14th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. KafkaUtils
  2. .createDirectStream[String, SomeClass](options...)
  3. .foreachPartition(
  4. partition => {
  5. doSomeWork(partition)
  6. }
  7. )
  8.  
  9. Await.result(execute, 2 seconds)
Add Comment
Please, Sign In to add comment