Class SourceBuilder

java.lang.Object
org.apache.flink.state.api.input.SourceBuilder

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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <OUT> org.apache.flink.streaming.api.datastream.DataStreamSource<OUT>
    fromFormat(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env, org.apache.flink.api.common.io.InputFormat<OUT,?> inputFormat, org.apache.flink.api.common.typeinfo.TypeInformation<OUT> typeInfo)
    Creates a new source that is bounded.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • fromFormat

      public static <OUT> org.apache.flink.streaming.api.datastream.DataStreamSource<OUT> fromFormat(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env, org.apache.flink.api.common.io.InputFormat<OUT,?> inputFormat, org.apache.flink.api.common.typeinfo.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.