# DStream Window Transformation

### Transformation

window(windowLength, slideInterval)&#x20;

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