Class SideOutputDataStream<T>

  • Type Parameters:
    T - The type of the elements in this stream.

    @Public
    public class SideOutputDataStream<T>
    extends DataStream<T>
    A SideOutputDataStream represents a DataStream that contains elements that are emitted from upstream into a side output with some tag.
    • Method Detail

      • cache

        @PublicEvolving
        public CachedDataStream<T> cache()
        Caches the intermediate result of the transformation. Only support bounded streams and currently only block mode is supported. The cache is generated lazily at the first time the intermediate result is computed. The cache will be clear when CachedDataStream.invalidate() called or the StreamExecutionEnvironment close.
        Returns:
        CachedDataStream that can use in later job to reuse the cached intermediate result.