Package org.apache.iceberg
Interface MergeableScanTask<ThisT>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canMerge(ScanTask other)
Checks if this task can merge with a given task.ThisT
merge(ScanTask other)
Merges this task with a given task.-
Methods inherited from interface org.apache.iceberg.ScanTask
asCombinedScanTask, asDataTask, asFileScanTask, estimatedRowsCount, filesCount, isDataTask, isFileScanTask, sizeBytes
-
-
-
-
Method Detail
-
canMerge
boolean canMerge(ScanTask other)
Checks if this task can merge with a given task.- Parameters:
other
- another task- Returns:
- whether the tasks can be merged
-
merge
ThisT merge(ScanTask other)
Merges this task with a given task.Note this method will be called only if
canMerge(ScanTask)
returns true.- Parameters:
other
- another task- Returns:
- a new merged task
-
-