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 Summary
Modifier and TypeMethodDescriptiondefault CombinedScanTask
Returns this cast toCombinedScanTask
if it is onedefault DataTask
Returns this cast toDataTask
if it is onedefault FileScanTask
Returns this cast toFileScanTask
if it is onedefault long
The estimated number of rows produced by this scan task.default int
The number of files that will be opened by this scan task.default boolean
Returns true if this is aDataTask
, false otherwise.default boolean
Returns true if this is aFileScanTask
, false otherwise.default long
The number of bytes that should be read by this scan task.
-
Method Details
-
sizeBytes
default long sizeBytes()The number of bytes that should be read by this scan task.- Returns:
- the total number of bytes to read
-
estimatedRowsCount
default long estimatedRowsCount()The estimated number of rows produced by this scan task.- Returns:
- the estimated number of produced rows
-
filesCount
default int filesCount()The number of files that will be opened by this scan task.- Returns:
- the number of files to open
-
isFileScanTask
default boolean isFileScanTask()Returns true if this is aFileScanTask
, false otherwise. -
asFileScanTask
Returns this cast toFileScanTask
if it is one- Returns:
- this cast to
FileScanTask
if it is one - Throws:
IllegalStateException
- if this is not aFileScanTask
-
isDataTask
default boolean isDataTask()Returns true if this is aDataTask
, false otherwise. -
asDataTask
Returns this cast toDataTask
if it is one- Returns:
- this cast to
DataTask
if it is one - Throws:
IllegalStateException
- if this is not aDataTask
-
asCombinedScanTask
Returns this cast toCombinedScanTask
if it is one- Returns:
- this cast to
CombinedScanTask
if it is one - Throws:
IllegalStateException
- if this is not aCombinedScanTask
-