Class SourceBuilder


  • @Internal
    public final class SourceBuilder
    extends Object
    A utility for constructing InputFormat based sources that are marked as BOUNDED.
    • Method Detail

      • fromFormat

        public static <OUT> DataStreamSource<OUT> fromFormat​(StreamExecutionEnvironment env,
                                                             InputFormat<OUT,​?> inputFormat,
                                                             TypeInformation<OUT> typeInfo)
        Creates a new source that is bounded.
        Type Parameters:
        OUT - The output type.
        Parameters:
        env - The stream execution environment.
        inputFormat - The input source to consume.
        typeInfo - The type of the output.
        Returns:
        A source that is bounded.