@PublicEvolving public static class HybridSource.HybridSourceBuilder<T,EnumT extends SplitEnumerator> extends Object implements Serializable
Constructor and Description |
---|
HybridSourceBuilder() |
Modifier and Type | Method and Description |
---|---|
<ToEnumT extends SplitEnumerator,NextSourceT extends Source<T,?,?>> |
addSource(HybridSource.SourceFactory<T,NextSourceT,? super EnumT> sourceFactory,
Boundedness boundedness)
Add source with deferred instantiation based on previous enumerator.
|
<ToEnumT extends SplitEnumerator,NextSourceT extends Source<T,?,?>> |
addSource(NextSourceT source)
Add pre-configured source (without switch time modification).
|
HybridSource<T> |
build()
Build the source.
|
public <ToEnumT extends SplitEnumerator,NextSourceT extends Source<T,?,?>> HybridSource.HybridSourceBuilder<T,ToEnumT> addSource(NextSourceT source)
public <ToEnumT extends SplitEnumerator,NextSourceT extends Source<T,?,?>> HybridSource.HybridSourceBuilder<T,ToEnumT> addSource(HybridSource.SourceFactory<T,NextSourceT,? super EnumT> sourceFactory, Boundedness boundedness)
public HybridSource<T> build()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.