Package org.apache.iceberg
Interface ScanTask
-
- All Superinterfaces:
java.io.Serializable
- All Known Subinterfaces:
CombinedScanTask
,DataTask
,FileScanTask
- All Known Implementing Classes:
BaseCombinedScanTask
public interface ScanTask extends java.io.Serializable
A scan task.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default CombinedScanTask
asCombinedScanTask()
Returns this cast toCombinedScanTask
if it is onedefault DataTask
asDataTask()
Returns this cast toDataTask
if it is onedefault FileScanTask
asFileScanTask()
Returns this cast toFileScanTask
if it is onedefault boolean
isDataTask()
Returns true if this is aDataTask
, false otherwise.default boolean
isFileScanTask()
Returns true if this is aFileScanTask
, false otherwise.
-
-
-
Method Detail
-
isFileScanTask
default boolean isFileScanTask()
Returns true if this is aFileScanTask
, false otherwise.
-
asFileScanTask
default FileScanTask asFileScanTask()
Returns this cast toFileScanTask
if it is one- Returns:
- this cast to
FileScanTask
if it is one - Throws:
java.lang.IllegalStateException
- if this is not aFileScanTask
-
isDataTask
default boolean isDataTask()
Returns true if this is aDataTask
, false otherwise.
-
asCombinedScanTask
default CombinedScanTask asCombinedScanTask()
Returns this cast toCombinedScanTask
if it is one- Returns:
- this cast to
CombinedScanTask
if it is one - Throws:
java.lang.IllegalStateException
- if this is not aCombinedScanTask
-
-