Interface SupportsRealTimeMode
@Evolving
public interface SupportsRealTimeMode
A
MicroBatchStream for streaming queries with real time mode.-
Method Summary
Modifier and TypeMethodDescriptionmergeOffsets(PartitionOffset[] offsets) Merge partitioned offsets coming fromSupportsRealTimeModeinstances for each partition to a single global offset.planInputPartitions(Offset start) Returns a list ofinput partitionsgiven the start offset.default voidCalled during logical planning to inform the source if it's in real time mode
-
Method Details
-
planInputPartitions
Returns a list ofinput partitionsgiven the start offset. EachInputPartitionrepresents a data split that can be processed by one Spark task. The number of input partitions returned here is the same as the number of RDD partitions this scan outputs. -
mergeOffsets
Merge partitioned offsets coming fromSupportsRealTimeModeinstances for each partition to a single global offset. -
prepareForRealTimeMode
default void prepareForRealTimeMode()Called during logical planning to inform the source if it's in real time mode
-