public WindowDefinition window(Window window) {

        this.window = window;
        return this;
    }
UpdateSet the internal window to the WindowDefinition.

@param window the internal window
@return the WindowDefinition object for chained method call
modules/siddhi-query-api/src/main/java/io/siddhi/query/api/definition/WindowDefinition.java