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()
Returns this cast toDataTask
if it is onedefault boolean
isDataTask()
Returns true if this is aDataTask
, false otherwise.CloseableIterable<StructLike>
rows()
Returns an iterable ofStructLike
rows.-
Methods inherited from interface org.apache.iceberg.FileScanTask
asFileScanTask, deletes, file, isFileScanTask, length, residual, spec, split, start
-
Methods inherited from interface org.apache.iceberg.ScanTask
asCombinedScanTask
-
-
-
-
Method Detail
-
isDataTask
default boolean isDataTask()
Description copied from interface:ScanTask
Returns true if this is aDataTask
, false otherwise.- Specified by:
isDataTask
in interfaceScanTask
-
asDataTask
default DataTask asDataTask()
Description copied from interface:ScanTask
Returns this cast toDataTask
if it is one- Specified by:
asDataTask
in interfaceScanTask
- Returns:
- this cast to
DataTask
if it is one
-
rows
CloseableIterable<StructLike> rows()
Returns an iterable ofStructLike
rows.
-
-