Package org.apache.iceberg.flink.source
Class IcebergSource<T>
- java.lang.Object
-
- org.apache.iceberg.flink.source.IcebergSource<T>
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.flink.api.connector.source.Source<T,IcebergSourceSplit,IcebergEnumeratorState>
,org.apache.flink.api.connector.source.SourceReaderFactory<T,IcebergSourceSplit>
public class IcebergSource<T> extends java.lang.Object implements org.apache.flink.api.connector.source.Source<T,IcebergSourceSplit,IcebergEnumeratorState>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IcebergSource.Builder<T>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> IcebergSource.Builder<T>
builder()
Deprecated.since 1.7.0.org.apache.flink.api.connector.source.SplitEnumerator<IcebergSourceSplit,IcebergEnumeratorState>
createEnumerator(org.apache.flink.api.connector.source.SplitEnumeratorContext<IcebergSourceSplit> enumContext)
org.apache.flink.api.connector.source.SourceReader<T,IcebergSourceSplit>
createReader(org.apache.flink.api.connector.source.SourceReaderContext readerContext)
static <T> IcebergSource.Builder<T>
forOutputType(RowDataConverter<T> converter)
Create a source builder that would convertRowData
to the output typeT
.static IcebergSource.Builder<org.apache.flink.table.data.RowData>
forRowData()
Create a source builder for RowData output type.org.apache.flink.api.connector.source.Boundedness
getBoundedness()
org.apache.flink.core.io.SimpleVersionedSerializer<IcebergEnumeratorState>
getEnumeratorCheckpointSerializer()
org.apache.flink.core.io.SimpleVersionedSerializer<IcebergSourceSplit>
getSplitSerializer()
org.apache.flink.api.connector.source.SplitEnumerator<IcebergSourceSplit,IcebergEnumeratorState>
restoreEnumerator(org.apache.flink.api.connector.source.SplitEnumeratorContext<IcebergSourceSplit> enumContext, IcebergEnumeratorState enumState)
-
-
-
Method Detail
-
getBoundedness
public org.apache.flink.api.connector.source.Boundedness getBoundedness()
- Specified by:
getBoundedness
in interfaceorg.apache.flink.api.connector.source.Source<T,IcebergSourceSplit,IcebergEnumeratorState>
-
createReader
public org.apache.flink.api.connector.source.SourceReader<T,IcebergSourceSplit> createReader(org.apache.flink.api.connector.source.SourceReaderContext readerContext)
- Specified by:
createReader
in interfaceorg.apache.flink.api.connector.source.SourceReaderFactory<T,IcebergSourceSplit>
-
createEnumerator
public org.apache.flink.api.connector.source.SplitEnumerator<IcebergSourceSplit,IcebergEnumeratorState> createEnumerator(org.apache.flink.api.connector.source.SplitEnumeratorContext<IcebergSourceSplit> enumContext)
- Specified by:
createEnumerator
in interfaceorg.apache.flink.api.connector.source.Source<T,IcebergSourceSplit,IcebergEnumeratorState>
-
restoreEnumerator
public org.apache.flink.api.connector.source.SplitEnumerator<IcebergSourceSplit,IcebergEnumeratorState> restoreEnumerator(org.apache.flink.api.connector.source.SplitEnumeratorContext<IcebergSourceSplit> enumContext, IcebergEnumeratorState enumState)
- Specified by:
restoreEnumerator
in interfaceorg.apache.flink.api.connector.source.Source<T,IcebergSourceSplit,IcebergEnumeratorState>
-
getSplitSerializer
public org.apache.flink.core.io.SimpleVersionedSerializer<IcebergSourceSplit> getSplitSerializer()
- Specified by:
getSplitSerializer
in interfaceorg.apache.flink.api.connector.source.Source<T,IcebergSourceSplit,IcebergEnumeratorState>
-
getEnumeratorCheckpointSerializer
public org.apache.flink.core.io.SimpleVersionedSerializer<IcebergEnumeratorState> getEnumeratorCheckpointSerializer()
- Specified by:
getEnumeratorCheckpointSerializer
in interfaceorg.apache.flink.api.connector.source.Source<T,IcebergSourceSplit,IcebergEnumeratorState>
-
builder
@Deprecated public static <T> IcebergSource.Builder<T> builder()
Deprecated.since 1.7.0. Will be removed in 2.0.0; useforRowData()
orforOutputType(RowDataConverter)
insteadCreate a source builder.
-
forRowData
public static IcebergSource.Builder<org.apache.flink.table.data.RowData> forRowData()
Create a source builder for RowData output type.
-
forOutputType
public static <T> IcebergSource.Builder<T> forOutputType(RowDataConverter<T> converter)
Create a source builder that would convertRowData
to the output typeT
.- Type Parameters:
T
- output type- Parameters:
converter
- convertRowData
to output typeT
- Returns:
- an IcebergSource builder
-
-