Class HybridSource.HybridSourceBuilder<T,EnumT extends SplitEnumerator>
- java.lang.Object
-
- org.apache.flink.connector.base.source.hybrid.HybridSource.HybridSourceBuilder<T,EnumT>
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- HybridSource<T>
@PublicEvolving public static class HybridSource.HybridSourceBuilder<T,EnumT extends SplitEnumerator> extends Object implements Serializable
Builder for HybridSource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HybridSourceBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <ToEnumT extends SplitEnumerator,NextSourceT extends Source<T,?,?>>
HybridSource.HybridSourceBuilder<T,ToEnumT>addSource(NextSourceT source)
Add pre-configured source (without switch time modification).<ToEnumT extends SplitEnumerator,NextSourceT extends Source<T,?,?>>
HybridSource.HybridSourceBuilder<T,ToEnumT>addSource(HybridSource.SourceFactory<T,NextSourceT,? super EnumT> sourceFactory, Boundedness boundedness)
Add source with deferred instantiation based on previous enumerator.HybridSource<T>
build()
Build the source.
-
-
-
Method Detail
-
addSource
public <ToEnumT extends SplitEnumerator,NextSourceT extends Source<T,?,?>> HybridSource.HybridSourceBuilder<T,ToEnumT> addSource(NextSourceT source)
Add pre-configured source (without switch time modification).
-
addSource
public <ToEnumT extends SplitEnumerator,NextSourceT extends Source<T,?,?>> HybridSource.HybridSourceBuilder<T,ToEnumT> addSource(HybridSource.SourceFactory<T,NextSourceT,? super EnumT> sourceFactory, Boundedness boundedness)
Add source with deferred instantiation based on previous enumerator.
-
build
public HybridSource<T> build()
Build the source.
-
-