Package org.apache.iceberg
Interface AddedRowsScanTask
- All Superinterfaces:
- ChangelogScanTask,- ContentScanTask<DataFile>,- PartitionScanTask,- ScanTask,- Serializable
A scan task for inserts generated by adding a data file to the table.
 
Note that added data files may have matching delete files. This may happen if a matching position delete file is committed in the same snapshot or if changes for multiple snapshots are squashed together.
Suppose snapshot S1 adds data files F1, F2, F3 and a position delete file, D1, that marks particular records in F1 as deleted. A scan for changes generated by S1 should include the following tasks:
- AddedRowsScanTask(file=F1, deletes=[D1], snapshot=S1)
- AddedRowsScanTask(file=F2, deletes=[], snapshot=S1)
- AddedRowsScanTask(file=F3, deletes=[], snapshot=S1)
Readers consuming these tasks should produce added records with metadata like change ordinal and commit snapshot ID.
- 
Method SummaryModifier and TypeMethodDescriptiondeletes()A list ofdelete filesto apply when reading the data file in this task.default intThe number of files that will be opened by this scan task.default ChangelogOperationReturns the type of changes produced by this task (i.e. insert/delete).default longThe number of bytes that should be read by this scan task.Methods inherited from interface org.apache.iceberg.ChangelogScanTaskchangeOrdinal, commitSnapshotIdMethods inherited from interface org.apache.iceberg.ContentScanTaskestimatedRowsCount, file, length, partition, residual, startMethods inherited from interface org.apache.iceberg.PartitionScanTaskspecMethods inherited from interface org.apache.iceberg.ScanTaskasCombinedScanTask, asDataTask, asFileScanTask, isDataTask, isFileScanTask
- 
Method Details- 
deletesList<DeleteFile> deletes()A list ofdelete filesto apply when reading the data file in this task.- Returns:
- a list of delete files to apply
 
- 
operationDescription copied from interface:ChangelogScanTaskReturns the type of changes produced by this task (i.e. insert/delete).- Specified by:
- operationin interface- ChangelogScanTask
 
- 
sizeBytesdefault long sizeBytes()Description copied from interface:ScanTaskThe number of bytes that should be read by this scan task.- Specified by:
- sizeBytesin interface- ContentScanTask<DataFile>
- Specified by:
- sizeBytesin interface- ScanTask
- Returns:
- the total number of bytes to read
 
- 
filesCountdefault int filesCount()Description copied from interface:ScanTaskThe number of files that will be opened by this scan task.- Specified by:
- filesCountin interface- ScanTask
- Returns:
- the number of files to open
 
 
-