public class DataTableStreamScan extends Object implements StreamDataTableScan
StreamTableScan implementation for streaming planning.TableScan.Plan| Modifier and Type | Field and Description |
|---|---|
protected SnapshotReader |
snapshotReader |
| Constructor and Description |
|---|
DataTableStreamScan(CoreOptions options,
SnapshotReader snapshotReader,
SnapshotManager snapshotManager,
ChangelogManager changelogManager,
boolean supportStreamingReadOverwrite,
DefaultValueAssigner defaultValueAssigner) |
| Modifier and Type | Method and Description |
|---|---|
Long |
checkpoint()
Checkpoint to return next snapshot id.
|
protected BoundedChecker |
createBoundedChecker() |
protected FollowUpScanner |
createFollowUpScanner() |
protected StartingScanner |
createStartingScanner(boolean isStreaming) |
org.apache.paimon.table.source.AbstractDataTableScan |
dropStats() |
protected SnapshotReader.Plan |
handleOverwriteSnapshot(Snapshot snapshot) |
List<PartitionEntry> |
listPartitionEntries() |
void |
notifyCheckpointComplete(Long nextSnapshot)
Notifies the checkpoint complete with next snapshot id.
|
CoreOptions |
options() |
TableScan.Plan |
plan()
Plan splits, throws
EndOfScanException if the scan is ended. |
void |
restore(Long nextSnapshotId)
Restore from checkpoint next snapshot id.
|
void |
restore(Long nextSnapshotId,
boolean scanAllSnapshot)
Restore from checkpoint next snapshot id with scan kind.
|
StartingContext |
startingContext() |
Long |
watermark()
Current watermark for consumed snapshot.
|
org.apache.paimon.table.source.AbstractDataTableScan |
withBucket(int bucket) |
org.apache.paimon.table.source.AbstractDataTableScan |
withBucketFilter(Filter<Integer> bucketFilter) |
DataTableStreamScan |
withFilter(Predicate predicate) |
org.apache.paimon.table.source.AbstractDataTableScan |
withLevelFilter(Filter<Integer> levelFilter) |
org.apache.paimon.table.source.AbstractDataTableScan |
withMetricsRegistry(MetricRegistry metricsRegistry) |
org.apache.paimon.table.source.AbstractDataTableScan |
withPartitionFilter(List<BinaryRow> partitions) |
org.apache.paimon.table.source.AbstractDataTableScan |
withPartitionFilter(Map<String,String> partitionSpec) |
org.apache.paimon.table.source.AbstractDataTableScan |
withPartitionsFilter(List<Map<String,String>> partitions) |
DataTableScan |
withShard(int indexOfThisSubtask,
int numberOfParallelSubtasks)
Specify the shard to be read, and allocate sharded files to read records.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdropStats, withBucket, withBucketFilter, withLevelFilter, withLimit, withMetricsRegistry, withPartitionFilter, withPartitionFilter, withPartitionsFilterlistPartitionsprotected final SnapshotReader snapshotReader
public DataTableStreamScan(CoreOptions options, SnapshotReader snapshotReader, SnapshotManager snapshotManager, ChangelogManager changelogManager, boolean supportStreamingReadOverwrite, DefaultValueAssigner defaultValueAssigner)
public DataTableStreamScan withFilter(Predicate predicate)
withFilter in interface InnerTableScanpublic StartingContext startingContext()
startingContext in interface StreamDataTableScanpublic TableScan.Plan plan()
TableScanEndOfScanException if the scan is ended.public List<PartitionEntry> listPartitionEntries()
listPartitionEntries in interface TableScan@Nullable protected SnapshotReader.Plan handleOverwriteSnapshot(Snapshot snapshot)
protected FollowUpScanner createFollowUpScanner()
protected BoundedChecker createBoundedChecker()
@Nullable public Long checkpoint()
StreamTableScancheckpoint in interface StreamTableScancheckpoint in interface Restorable<Long>@Nullable public Long watermark()
StreamTableScanwatermark in interface StreamTableScanpublic void restore(@Nullable Long nextSnapshotId)
StreamTableScanrestore in interface StreamTableScanrestore in interface Restorable<Long>public void restore(@Nullable Long nextSnapshotId, boolean scanAllSnapshot)
StreamDataTableScanrestore in interface StreamDataTableScanpublic void notifyCheckpointComplete(@Nullable Long nextSnapshot)
StreamTableScannotifyCheckpointComplete in interface StreamTableScanpublic DataTableScan withShard(int indexOfThisSubtask, int numberOfParallelSubtasks)
DataTableScanwithShard in interface DataTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withBucket(int bucket)
withBucket in interface InnerTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withBucketFilter(Filter<Integer> bucketFilter)
withBucketFilter in interface InnerTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withPartitionFilter(Map<String,String> partitionSpec)
withPartitionFilter in interface InnerTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withPartitionFilter(List<BinaryRow> partitions)
withPartitionFilter in interface InnerTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withPartitionsFilter(List<Map<String,String>> partitions)
withPartitionsFilter in interface InnerTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withLevelFilter(Filter<Integer> levelFilter)
withLevelFilter in interface InnerTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withMetricsRegistry(MetricRegistry metricsRegistry)
withMetricsRegistry in interface InnerTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan dropStats()
dropStats in interface InnerTableScanpublic CoreOptions options()
protected StartingScanner createStartingScanner(boolean isStreaming)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.