Skip to content

Instantly share code, notes, and snippets.

@sap1ens
Created March 3, 2022 22:05
Show Gist options
  • Save sap1ens/e4bd1978082c15182a651e98c4077bde to your computer and use it in GitHub Desktop.
Save sap1ens/e4bd1978082c15182a651e98c4077bde to your computer and use it in GitHub Desktop.
val records: DataStream[Record] = …
val fileSink: SinkFunction[Record] = …
records.keyBy(_.partition).addSink(fileSink)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment