Interface DataStreamSinkExternalContext<T>

    • Method Detail

      • generateTestData

        List<T> generateTestData​(TestingSinkSettings sinkSettings,
                                 long seed)
        Generate test data.

        These test data will be sent to sink via a special source in Flink job, write to external system by sink, consume back via ExternalSystemDataReader, and make comparison with Object.equals(Object) for validating correctness.

        Make sure that the Object.equals(Object) returns false when the records in different splits.

        Parameters:
        sinkSettings - settings of the sink
        seed - Seed for generating random test data set.
        Returns:
        List of generated test data.