Package org.apache.iceberg
Interface DataTask
-
- All Superinterfaces:
FileScanTask,ScanTask,java.io.Serializable
public interface DataTask extends FileScanTask
A task that returns data asrowsinstead of where to read data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DataTaskasDataTask()default booleanisDataTask()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:
isDataTaskin interfaceScanTask- Returns:
- true if this is a
DataTask, false otherwise.
-
asDataTask
default DataTask asDataTask()
- Specified by:
asDataTaskin interfaceScanTask- Returns:
- this cast to
DataTaskif it is one
-
rows
CloseableIterable<StructLike> rows()
- Returns:
- an iterable of
StructLikerows
-
-