T
- Type of elements before serialization by sink@Experimental public interface DataStreamSinkExternalContext<T> extends ExternalContext, ResultTypeQueryable<T>
Modifier and Type | Method and Description |
---|---|
ExternalSystemDataReader<T> |
createSinkDataReader(TestingSinkSettings sinkSettings)
Create a reader for consuming data written to the external system by sink.
|
List<T> |
generateTestData(TestingSinkSettings sinkSettings,
long seed)
Generate test data.
|
getConnectorJarPaths
close
getProducedType
ExternalSystemDataReader<T> createSinkDataReader(TestingSinkSettings sinkSettings)
List<T> generateTestData(TestingSinkSettings sinkSettings, long seed)
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
T#equals(Object)
for validating correctness.
Make sure that the T#equals(Object)
returns false when the records in different
splits.
sinkSettings
- settings of the sinkseed
- Seed for generating random test data set.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.