Class LegacySourceTransformation<T>

  • Type Parameters:
    T - The type of the elements that this source produces
    All Implemented Interfaces:
    WithBoundedness

    @Internal
    public class LegacySourceTransformation<T>
    extends TransformationWithLineage<T>
    implements WithBoundedness
    This represents a Source. This does not actually transform anything since it has no inputs but it is the root Transformation of any topology.
    • Field Summary

      • Fields inherited from class org.apache.flink.api.dag.Transformation

        bufferTimeout, description, id, name, outputType, typeUsed, UPPER_BOUND_MAX_PARALLELISM
    • Constructor Summary

      Constructors 
      Constructor Description
      LegacySourceTransformation​(String name, StreamSource<T,​?> operator, org.apache.flink.api.common.typeinfo.TypeInformation<T> outputType, int parallelism, org.apache.flink.api.connector.source.Boundedness boundedness, boolean parallelismConfigured)
      Creates a new LegacySourceTransformation from the given operator.
    • Constructor Detail

      • LegacySourceTransformation

        public LegacySourceTransformation​(String name,
                                          StreamSource<T,​?> operator,
                                          org.apache.flink.api.common.typeinfo.TypeInformation<T> outputType,
                                          int parallelism,
                                          org.apache.flink.api.connector.source.Boundedness boundedness,
                                          boolean parallelismConfigured)
        Creates a new LegacySourceTransformation from the given operator.
        Parameters:
        name - The name of the LegacySourceTransformation, this will be shown in Visualizations and the Log
        operator - The StreamSource that is the operator of this Transformation
        outputType - The type of the elements produced by this LegacySourceTransformation
        parallelism - The parallelism of this LegacySourceTransformation
        parallelismConfigured - If true, the parallelism of the transformation is explicitly set and should be respected. Otherwise the parallelism can be changed at runtime.
    • Method Detail

      • setBoundedness

        public void setBoundedness​(org.apache.flink.api.connector.source.Boundedness boundedness)
        Mutable for legacy sources in the Table API.
      • getBoundedness

        public org.apache.flink.api.connector.source.Boundedness getBoundedness()
        Description copied from interface: WithBoundedness
        Returns the Boundedness of this Transformation.
        Specified by:
        getBoundedness in interface WithBoundedness
      • getOperator

        @VisibleForTesting
        public StreamSource<T,​?> getOperator()
      • getOperatorFactory

        public StreamOperatorFactory<T> getOperatorFactory()
        Returns the StreamOperatorFactory of this LegacySourceTransformation.
      • getTransitivePredecessorsInternal

        protected List<org.apache.flink.api.dag.Transformation<?>> getTransitivePredecessorsInternal()
        Specified by:
        getTransitivePredecessorsInternal in class org.apache.flink.api.dag.Transformation<T>
      • getInputs

        public List<org.apache.flink.api.dag.Transformation<?>> getInputs()
        Specified by:
        getInputs in class org.apache.flink.api.dag.Transformation<T>