T - The type of records produced by the source.SplitT - The type of splits handled by the source.StateT - The type of checkpoint states.public interface SeaTunnelSource<T,SplitT extends SourceSplit,StateT extends Serializable> extends Serializable, PluginIdentifierInterface, SeaTunnelPluginLifeCycle, SeaTunnelJobAware
SourceSplitEnumerator and SourceReader and corresponding serializers.| 限定符和类型 | 方法和说明 |
|---|---|
SourceSplitEnumerator<SplitT,StateT> |
createEnumerator(SourceSplitEnumerator.Context<SplitT> enumeratorContext)
Create source split enumerator, used to generate splits.
|
SourceReader<T,SplitT> |
createReader(SourceReader.Context readerContext)
Create source reader, used to produce data.
|
Boundedness |
getBoundedness()
Get the boundedness of this source.
|
default Serializer<StateT> |
getEnumeratorStateSerializer()
Create enumerator state serializer, used to serialize/deserialize checkpoint state.
|
default List<CatalogTable> |
getProducedCatalogTables()
Get the catalog tables output by this source, It is recommended that all connectors implement
this method instead of
getProducedType(). |
default SeaTunnelDataType<T> |
getProducedType()
已过时。
Please use
getProducedCatalogTables() |
default Serializer<SplitT> |
getSplitSerializer()
Create split serializer, use to serialize/deserialize split generated by
SourceSplitEnumerator. |
SourceSplitEnumerator<SplitT,StateT> |
restoreEnumerator(SourceSplitEnumerator.Context<SplitT> enumeratorContext,
StateT checkpointState)
Create source split enumerator, used to generate splits.
|
getPluginNamepreparesetJobContextBoundedness getBoundedness()
@Deprecated default SeaTunnelDataType<T> getProducedType()
getProducedCatalogTables()default List<CatalogTable> getProducedCatalogTables()
getProducedType(). CatalogTable contains more information to
help downstream support more accurate and complete synchronization capabilities.SourceReader<T,SplitT> createReader(SourceReader.Context readerContext) throws Exception
readerContext - reader context.Exception - when create reader failed.default Serializer<SplitT> getSplitSerializer()
SourceSplitEnumerator.SourceSplitEnumerator<SplitT,StateT> createEnumerator(SourceSplitEnumerator.Context<SplitT> enumeratorContext) throws Exception
enumeratorContext - enumerator context.Exception - when create enumerator failed.SourceSplitEnumerator<SplitT,StateT> restoreEnumerator(SourceSplitEnumerator.Context<SplitT> enumeratorContext, StateT checkpointState) throws Exception
enumeratorContext - enumerator context.checkpointState - checkpoint state.Exception - when create enumerator failed.default Serializer<StateT> getEnumeratorStateSerializer()
Copyright © 2024 The Apache Software Foundation. All rights reserved.