public class DataTableStreamScan extends AbstractDataTableScan implements StreamDataTableScan
StreamTableScan implementation for streaming planning.TableScan.PlansnapshotReader| Constructor and Description |
|---|
DataTableStreamScan(CoreOptions options,
SnapshotReader snapshotReader,
SnapshotManager snapshotManager,
boolean supportStreamingReadOverwrite,
DefaultValueAssigner defaultValueAssigner) |
| Modifier and Type | Method and Description |
|---|---|
Long |
checkpoint()
Checkpoint to return next snapshot id.
|
void |
notifyCheckpointComplete(Long nextSnapshot)
Notifies the checkpoint complete with next snapshot id.
|
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.
|
DataTableStreamScan |
withFilter(Predicate predicate) |
DataTableScan |
withShard(int indexOfThisSubtask,
int numberOfParallelSubtasks)
Specify the shard to be read, and allocate sharded files to read records.
|
createStartingScanner, listPartitionEntries, options, withBucket, withBucketFilter, withLevelFilter, withMetricsRegistry, withPartitionFilter, withPartitionFilterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithBucketFilter, withLevelFilter, withLimit, withMetricsRegistry, withPartitionFilter, withPartitionFilterlistPartitionEntries, listPartitionspublic DataTableStreamScan(CoreOptions options, SnapshotReader snapshotReader, SnapshotManager snapshotManager, 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.@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 DataTableScanCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.