use of org.apache.flink.streaming.api.functions.source.ContinuousFileReaderOperator in project flink by apache.
the class ContinuousFileProcessingRescalingTest method getTestHarness.
private OneInputStreamOperatorTestHarness<TimestampedFileInputSplit, String> getTestHarness(BlockingFileInputFormat format, int noOfTasks, int taksIdx) throws Exception {
ContinuousFileReaderOperator<String> reader = new ContinuousFileReaderOperator<>(format);
reader.setOutputType(TypeExtractor.getInputFormatTypes(format), new ExecutionConfig());
OneInputStreamOperatorTestHarness<TimestampedFileInputSplit, String> testHarness = new OneInputStreamOperatorTestHarness<>(reader, 10, noOfTasks, taksIdx);
testHarness.setTimeCharacteristic(TimeCharacteristic.EventTime);
return testHarness;
}
Aggregations