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(TableSchema schema,
CoreOptions options,
SnapshotReader snapshotReader,
SnapshotManager snapshotManager,
ChangelogManager changelogManager,
boolean supportStreamingReadOverwrite,
TableQueryAuth queryAuth,
boolean hasPk) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
authQuery() |
Long |
checkpoint()
Checkpoint to return next snapshot id.
|
protected BoundedChecker |
createBoundedChecker() |
static StartingScanner |
createCreationTimestampStartingScanner(SnapshotManager snapshotManager,
ChangelogManager changelogManager,
long creationMillis,
boolean changelogDecoupled,
boolean isStreaming) |
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 |
withMetricRegistry(MetricRegistry metricsRegistry)
Set
MetricRegistry to table scan. |
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) |
InnerTableScan |
withReadType(RowType readType) |
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, withMetricRegistry, withPartitionFilter, withPartitionFilter, withPartitionsFilter, withReadTypelistPartitionsprotected final SnapshotReader snapshotReader
public DataTableStreamScan(TableSchema schema, CoreOptions options, SnapshotReader snapshotReader, SnapshotManager snapshotManager, ChangelogManager changelogManager, boolean supportStreamingReadOverwrite, TableQueryAuth queryAuth, boolean hasPk)
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 InnerTableScan withReadType(@Nullable RowType readType)
withReadType 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 withMetricRegistry(MetricRegistry metricsRegistry)
TableScanMetricRegistry to table scan.withMetricRegistry in interface InnerTableScanwithMetricRegistry in interface TableScanprotected void authQuery()
public org.apache.paimon.table.source.AbstractDataTableScan dropStats()
dropStats in interface InnerTableScanpublic CoreOptions options()
protected StartingScanner createStartingScanner(boolean isStreaming)
public static StartingScanner createCreationTimestampStartingScanner(SnapshotManager snapshotManager, ChangelogManager changelogManager, long creationMillis, boolean changelogDecoupled, boolean isStreaming)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.