Package org.apache.iceberg
Interface IncrementalScan<ThisT,T extends ScanTask,G extends ScanTaskGroup<T>>  
- All Superinterfaces:
- Scan<ThisT,- T, - G> 
- All Known Subinterfaces:
- IncrementalAppendScan,- IncrementalChangelogScan
public interface IncrementalScan<ThisT,T extends ScanTask,G extends ScanTaskGroup<T>>  
extends Scan<ThisT,T,G>  
API for configuring an incremental scan.
- 
Method SummaryModifier and TypeMethodDescriptionfromSnapshotExclusive(long fromSnapshotId) Instructs this scan to look for changes starting from a particular snapshot (exclusive).default ThisTInstructs this scan to look for changes starting from a particular snapshot (exclusive).fromSnapshotInclusive(long fromSnapshotId) Instructs this scan to look for changes starting from a particular snapshot (inclusive).default ThisTInstructs this scan to look for changes starting from a particular snapshot (inclusive).toSnapshot(long toSnapshotId) Instructs this scan to look for changes up to a particular snapshot (inclusive).default ThisTtoSnapshot(String ref) Instructs this scan to look for changes up to a particular snapshot ref (inclusive).default ThisTUse the specified branchMethods inherited from interface org.apache.iceberg.ScancaseSensitive, filter, filter, ignoreResiduals, includeColumnStats, includeColumnStats, isCaseSensitive, metricsReporter, option, planFiles, planTasks, planWith, project, schema, select, select, splitLookback, splitOpenFileCost, targetSplitSize
- 
Method Details- 
fromSnapshotInclusiveInstructs this scan to look for changes starting from a particular snapshot (inclusive).If the start snapshot is not configured, it defaults to the oldest ancestor of the end snapshot (inclusive). - Parameters:
- fromSnapshotId- the start snapshot ID (inclusive)
- Returns:
- this for method chaining
- Throws:
- IllegalArgumentException- if the start snapshot is not an ancestor of the end snapshot
 
- 
fromSnapshotInclusiveInstructs this scan to look for changes starting from a particular snapshot (inclusive).If the start snapshot is not configured, it defaults to the oldest ancestor of the end snapshot (inclusive). - Parameters:
- ref- the start ref name that points to a particular snapshot ID (inclusive)
- Returns:
- this for method chaining
- Throws:
- IllegalArgumentException- if the start snapshot is not an ancestor of the end snapshot
 
- 
fromSnapshotExclusiveInstructs this scan to look for changes starting from a particular snapshot (exclusive).If the start snapshot is not configured, it defaults to the oldest ancestor of the end snapshot (inclusive). - Parameters:
- fromSnapshotId- the start snapshot ID (exclusive)
- Returns:
- this for method chaining
- Throws:
- IllegalArgumentException- if the start snapshot is not an ancestor of the end snapshot
 
- 
fromSnapshotExclusiveInstructs this scan to look for changes starting from a particular snapshot (exclusive).If the start snapshot is not configured, it defaults to the oldest ancestor of the end snapshot (inclusive). - Parameters:
- ref- the start ref name that points to a particular snapshot ID (exclusive)
- Returns:
- this for method chaining
- Throws:
- IllegalArgumentException- if the start snapshot is not an ancestor of the end snapshot
 
- 
toSnapshotInstructs this scan to look for changes up to a particular snapshot (inclusive).If the end snapshot is not configured, it defaults to the current table snapshot (inclusive). - Parameters:
- toSnapshotId- the end snapshot ID (inclusive)
- Returns:
- this for method chaining
 
- 
toSnapshotInstructs this scan to look for changes up to a particular snapshot ref (inclusive).If the end snapshot is not configured, it defaults to the current table snapshot (inclusive). - Parameters:
- ref- the end snapshot Ref (inclusive)
- Returns:
- this for method chaining
 
- 
useBranchUse the specified branch- Parameters:
- branch- the branch name
- Returns:
- this for method chaining
 
 
-