Package org.apache.iceberg
Interface ScanTask
- All Superinterfaces:
- Serializable
- All Known Subinterfaces:
- AddedRowsScanTask,- ChangelogScanTask,- CombinedScanTask,- ContentScanTask<F>,- DataTask,- DeletedDataFileScanTask,- DeletedRowsScanTask,- FileScanTask,- MergeableScanTask<ThisT>,- PartitionScanTask,- PositionDeletesScanTask,- ScanTaskGroup<T>,- SplittableScanTask<ThisT>
- All Known Implementing Classes:
- BaseCombinedScanTask,- BaseFileScanTask,- BaseScanTaskGroup
A scan task.
- 
Method SummaryModifier and TypeMethodDescriptiondefault CombinedScanTaskReturns this cast toCombinedScanTaskif it is onedefault DataTaskReturns this cast toDataTaskif it is onedefault FileScanTaskReturns this cast toFileScanTaskif it is onedefault longThe estimated number of rows produced by this scan task.default intThe number of files that will be opened by this scan task.default booleanReturns true if this is aDataTask, false otherwise.default booleanReturns true if this is aFileScanTask, false otherwise.default longThe number of bytes that should be read by this scan task.
- 
Method Details- 
sizeBytesdefault long sizeBytes()The number of bytes that should be read by this scan task.- Returns:
- the total number of bytes to read
 
- 
estimatedRowsCountdefault long estimatedRowsCount()The estimated number of rows produced by this scan task.- Returns:
- the estimated number of produced rows
 
- 
filesCountdefault int filesCount()The number of files that will be opened by this scan task.- Returns:
- the number of files to open
 
- 
isFileScanTaskdefault boolean isFileScanTask()Returns true if this is aFileScanTask, false otherwise.
- 
asFileScanTaskReturns this cast toFileScanTaskif it is one- Returns:
- this cast to FileScanTaskif it is one
- Throws:
- IllegalStateException- if this is not a- FileScanTask
 
- 
isDataTaskdefault boolean isDataTask()Returns true if this is aDataTask, false otherwise.
- 
asDataTaskReturns this cast toDataTaskif it is one- Returns:
- this cast to DataTaskif it is one
- Throws:
- IllegalStateException- if this is not a- DataTask
 
- 
asCombinedScanTaskReturns this cast toCombinedScanTaskif it is one- Returns:
- this cast to CombinedScanTaskif it is one
- Throws:
- IllegalStateException- if this is not a- CombinedScanTask
 
 
-