> For the complete documentation index, see [llms.txt](https://george-jen.gitbook.io/data-science-and-apache-spark/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://george-jen.gitbook.io/data-science-and-apache-spark/dstream-window-transformation.md).

# DStream Window Transformation

### Transformation

window(windowLength, slideInterval)&#x20;

Return a new DStream which is computed based on windowed batches of the source DStream.
