/** * Gathers all panes of each window into a single output element. * * <p>This will gather all output panes into a single element, which causes them to be colocated * on a single worker. As a result, this is only suitable for {@link PCollection PCollections} * where all of the output elements for each pane fit in memory, such as in tests. */ public static <T> GatherAllPanes<T> globally() { return new GatherAllPanes<>(); }