Class HybridSourceSplit

  • All Implemented Interfaces:
    SourceSplit

    public class HybridSourceSplit
    extends Object
    implements SourceSplit
    Source split that wraps the actual split type.
    • Constructor Detail

      • HybridSourceSplit

        public HybridSourceSplit​(int sourceIndex,
                                 byte[] wrappedSplit,
                                 int serializerVersion,
                                 String splitId)
    • Method Detail

      • sourceIndex

        public int sourceIndex()
      • wrappedSplitBytes

        public byte[] wrappedSplitBytes()
      • wrappedSplitSerializerVersion

        public int wrappedSplitSerializerVersion()
      • splitId

        public String splitId()
        Description copied from interface: SourceSplit
        Get the split id of this source split.
        Specified by:
        splitId in interface SourceSplit
        Returns:
        id of this source split.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • wrapSplits

        public static List<HybridSourceSplit> wrapSplits​(List<? extends SourceSplit> state,
                                                         int readerIndex,
                                                         org.apache.flink.connector.base.source.hybrid.SwitchedSources switchedSources)
      • wrapSplit

        public static HybridSourceSplit wrapSplit​(SourceSplit split,
                                                  int sourceIndex,
                                                  org.apache.flink.connector.base.source.hybrid.SwitchedSources switchedSources)
      • unwrapSplit

        public static SourceSplit unwrapSplit​(HybridSourceSplit split,
                                              org.apache.flink.connector.base.source.hybrid.SwitchedSources switchedSources)