to

Creates a write transformation from a function that maps windows to table specifications.
Each time a new window is encountered, this function will be called and the resulting table
will be created. Records within that window will be written to the associated table.