Package org.apache.iceberg
Interface ScanTaskGroup<T extends ScanTask>
- Type Parameters:
- T- the type of scan tasks
- All Superinterfaces:
- ScanTask,- Serializable
- All Known Subinterfaces:
- CombinedScanTask
- All Known Implementing Classes:
- BaseCombinedScanTask,- BaseScanTaskGroup
A scan task that may include partial input files, multiple input files or both.
- 
Method SummaryModifier and TypeMethodDescriptiondefault longThe estimated number of rows produced by this scan task.default intThe number of files that will be opened by this scan task.default StructLikeReturns a grouping key for this task group.default longThe number of bytes that should be read by this scan task.tasks()Returns scan tasks in this group.Methods inherited from interface org.apache.iceberg.ScanTaskasCombinedScanTask, asDataTask, asFileScanTask, isDataTask, isFileScanTask
- 
Method Details- 
groupingKeyReturns a grouping key for this task group.A grouping key is a set of values that are common amongst all rows produced by the tasks in this task group. The values may be the result of transforming the underlying data. For example, a grouping key can consist of a bucket ordinal computed by applying a bucket transform to a column of the underlying rows. The grouping key type is determined at planning time and is identical across all task groups produced by a scan. Implementations should return an empty struct if the data grouping is random or unknown. - Returns:
- a grouping key for this task group
 
- 
tasksCollection<T> tasks()Returns scan tasks in this group.
- 
sizeBytesdefault long sizeBytes()Description copied from interface:ScanTaskThe number of bytes that should be read by this scan task.
- 
estimatedRowsCountdefault long estimatedRowsCount()Description copied from interface:ScanTaskThe estimated number of rows produced by this scan task.- Specified by:
- estimatedRowsCountin interface- ScanTask
- Returns:
- the estimated number of produced rows
 
- 
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
 
 
-