Class FromElementsGeneratorFunction<OUT>

    • Method Detail

      • setOutputType

        public void setOutputType​(TypeInformation<OUT> outTypeInfo,
                                  ExecutionConfig executionConfig)
        Description copied from interface: OutputTypeConfigurable
        Is called by the org.apache.flink.streaming.api.graph.StreamGraph#addOperator(Integer, String, StreamOperator, TypeInformation, TypeInformation, String) method when the org.apache.flink.streaming.api.graph.StreamGraph is generated. The method is called with the output TypeInformation which is also used for the org.apache.flink.streaming.runtime.tasks.StreamTask output serializer.
        Specified by:
        setOutputType in interface OutputTypeConfigurable<OUT>
        Parameters:
        outTypeInfo - Output type information of the org.apache.flink.streaming.runtime.tasks.StreamTask
        executionConfig - Execution configuration
      • checkIterable

        public static <OUT> void checkIterable​(Iterable<OUT> elements,
                                               Class<?> viewedAs)
        Verifies that all elements in the iterable are non-null, and are of the given class, or a subclass thereof.
        Type Parameters:
        OUT - The generic type of the iterable to be checked.
        Parameters:
        elements - The iterable to check.
        viewedAs - The class to which the elements must be assignable to.