Package org.apache.iceberg.flink.source
Class IcebergSource.Builder<T>
java.lang.Object
org.apache.iceberg.flink.source.IcebergSource.Builder<T>
- Enclosing class:
- IcebergSource<T>
- 
Method SummaryModifier and TypeMethodDescriptionasOfTimestamp(Long newAsOfTimestamp) assignerFactory(SplitAssignerFactory assignerFactory) build()org.apache.flink.streaming.api.datastream.DataStream<T> buildStream(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env) Build theIcebergSourceand create aDataStreamfrom the source.caseSensitive(boolean newCaseSensitive) endSnapshotId(Long newEndSnapshotId) exposeLocality(boolean newExposeLocality) filters(List<Expression> newFilters) flinkConfig(org.apache.flink.configuration.ReadableConfig config) includeColumnStats(boolean newIncludeColumnStats) maxAllowedPlanningFailures(int maxAllowedPlanningFailures) monitorInterval(Duration newMonitorInterval) nameMapping(String newNameMapping) planParallelism(int planParallelism) project(org.apache.flink.table.catalog.ResolvedSchema newProjectedFlinkSchema) project(org.apache.flink.table.legacy.api.TableSchema newProjectedFlinkSchema) Deprecated.since 1.10.0, will be removed in 2.0.0.properties(Map<String, String> properties) Deprecated.will be removed in 2.0.0; usesetAll(java.util.Map<java.lang.String, java.lang.String>)instead.readerFunction(ReaderFunction<T> newReaderFunction) Deprecated.since 1.7.0.Set the read properties for Flink source.Set the read properties for Flink source.splitComparator(SerializableComparator<IcebergSourceSplit> newSplitComparator) splitLookback(Integer newSplitLookback) splitOpenFileCost(Long newSplitOpenFileCost) startSnapshotId(Long newStartSnapshotId) startSnapshotTimestamp(Long newStartSnapshotTimestamp) streaming(boolean streaming) streamingStartingStrategy(StreamingStartingStrategy newStartingStrategy) tableLoader(TableLoader loader) useSnapshotId(Long newSnapshotId) watermarkColumn(String columnName) Emits watermarks once per split based on the min value of column statistics from files metadata in the given split.watermarkColumnTimeUnit(TimeUnit timeUnit) When the type of thewatermarkColumn(java.lang.String)isTypes.LongType, then sets theTimeUnitto convert the value.
- 
Method Details- 
tableLoader
- 
table
- 
assignerFactory
- 
splitComparatorpublic IcebergSource.Builder<T> splitComparator(SerializableComparator<IcebergSourceSplit> newSplitComparator) 
- 
readerFunctionDeprecated.since 1.7.0. Will be removed in 2.0.0; useIcebergSource.forOutputType(RowDataConverter)instead to produce output type other thanRowData.
- 
flinkConfig
- 
caseSensitive
- 
useSnapshotId
- 
streamingStartingStrategypublic IcebergSource.Builder<T> streamingStartingStrategy(StreamingStartingStrategy newStartingStrategy) 
- 
startSnapshotTimestamp
- 
startSnapshotId
- 
tag
- 
branch
- 
startTag
- 
endTag
- 
endSnapshotId
- 
asOfTimestamp
- 
splitSize
- 
splitLookback
- 
splitOpenFileCost
- 
streaming
- 
monitorInterval
- 
nameMapping
- 
project
- 
project@Deprecated public IcebergSource.Builder<T> project(org.apache.flink.table.legacy.api.TableSchema newProjectedFlinkSchema) Deprecated.since 1.10.0, will be removed in 2.0.0. Useproject(ResolvedSchema)instead.
- 
projectpublic IcebergSource.Builder<T> project(org.apache.flink.table.catalog.ResolvedSchema newProjectedFlinkSchema) 
- 
filters
- 
limit
- 
includeColumnStats
- 
planParallelism
- 
exposeLocality
- 
maxAllowedPlanningFailures
- 
setSet the read properties for Flink source. View the supported properties inFlinkReadOptions
- 
setAllSet the read properties for Flink source. View the supported properties inFlinkReadOptions
- 
watermarkColumnEmits watermarks once per split based on the min value of column statistics from files metadata in the given split. The generated watermarks are also used for ordering the splits for read. Accepted column types are timestamp/timestamptz/long. For long columns consider settingwatermarkColumnTimeUnit(TimeUnit).Consider setting `read.split.open-file-cost` to prevent combining small files to a single split when the watermark is used for watermark alignment. 
- 
watermarkColumnTimeUnitWhen the type of thewatermarkColumn(java.lang.String)isTypes.LongType, then sets theTimeUnitto convert the value. The default value isTimeUnit.MICROSECONDS.
- 
propertiesDeprecated.will be removed in 2.0.0; usesetAll(java.util.Map<java.lang.String, java.lang.String>)instead.
- 
build
- 
buildStreampublic org.apache.flink.streaming.api.datastream.DataStream<T> buildStream(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment env) Build theIcebergSourceand create aDataStreamfrom the source. Watermark strategy is set toWatermarkStrategy.noWatermarks().- Returns:
- data stream from the Iceberg source
 
 
-