Package org.apache.iceberg
Interface DataTask
-
- All Superinterfaces:
FileScanTask
,ScanTask
,java.io.Serializable
public interface DataTask extends FileScanTask
A task that returns data asrows
instead of where to read data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DataTask
asDataTask()
default boolean
isDataTask()
CloseableIterable<StructLike>
rows()
-
Methods inherited from interface org.apache.iceberg.FileScanTask
asFileScanTask, file, isFileScanTask, length, residual, spec, split, start
-
Methods inherited from interface org.apache.iceberg.ScanTask
asCombinedScanTask
-
-
-
-
Method Detail
-
isDataTask
default boolean isDataTask()
- Specified by:
isDataTask
in interfaceScanTask
- Returns:
- true if this is a
DataTask
, false otherwise.
-
asDataTask
default DataTask asDataTask()
- Specified by:
asDataTask
in interfaceScanTask
- Returns:
- this cast to
DataTask
if it is one
-
rows
CloseableIterable<StructLike> rows()
- Returns:
- an iterable of
StructLike
rows
-
-