Class RecordsBySplits<E>
java.lang.Object
org.apache.flink.connector.base.source.reader.RecordsBySplits<E>
- All Implemented Interfaces:
RecordsWithSplitIds<E>
An implementation of RecordsWithSplitIds to host all the records by splits.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA utility builder to collect records in individual calls, rather than put a finished collection in theRecordsBySplits(Map, Set)constructor. -
Constructor Summary
ConstructorsConstructorDescriptionRecordsBySplits(Map<String, Collection<E>> recordsBySplit, Set<String> finishedSplits) -
Method Summary
Modifier and TypeMethodDescriptionGet the finished splits.Gets the next record from the current split.Moves to the next split.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.connector.base.source.reader.RecordsWithSplitIds
recycle
-
Constructor Details
-
RecordsBySplits
-
-
Method Details
-
nextSplit
Description copied from interface:RecordsWithSplitIdsMoves to the next split. This method is also called initially to move to the first split. Returns null, if no splits are left.- Specified by:
nextSplitin interfaceRecordsWithSplitIds<E>
-
nextRecordFromSplit
Description copied from interface:RecordsWithSplitIdsGets the next record from the current split. Returns null if no more records are left in this split.- Specified by:
nextRecordFromSplitin interfaceRecordsWithSplitIds<E>
-
finishedSplits
Description copied from interface:RecordsWithSplitIdsGet the finished splits.- Specified by:
finishedSplitsin interfaceRecordsWithSplitIds<E>- Returns:
- the finished splits after this RecordsWithSplitIds is returned.
-