Package org.apache.iceberg
Interface DataTask
- All Superinterfaces:
ContentScanTask<DataFile>,FileScanTask,PartitionScanTask,ScanTask,Serializable,SplittableScanTask<FileScanTask>
A task that returns data as
rows instead of where to read data.-
Method Summary
Modifier and TypeMethodDescriptiondefault DataTaskReturns this cast toDataTaskif it is onedefault booleanReturns true if this is aDataTask, false otherwise.rows()Returns an iterable ofStructLikerows.Methods inherited from interface org.apache.iceberg.ContentScanTask
estimatedRowsCount, file, length, partition, residual, startMethods inherited from interface org.apache.iceberg.FileScanTask
asFileScanTask, deletes, filesCount, isFileScanTask, schema, sizeBytesMethods inherited from interface org.apache.iceberg.PartitionScanTask
specMethods inherited from interface org.apache.iceberg.ScanTask
asCombinedScanTaskMethods inherited from interface org.apache.iceberg.SplittableScanTask
split
-
Method Details
-
isDataTask
default boolean isDataTask()Description copied from interface:ScanTaskReturns true if this is aDataTask, false otherwise.- Specified by:
isDataTaskin interfaceScanTask
-
asDataTask
Description copied from interface:ScanTaskReturns this cast toDataTaskif it is one- Specified by:
asDataTaskin interfaceScanTask- Returns:
- this cast to
DataTaskif it is one
-
rows
CloseableIterable<StructLike> rows()Returns an iterable ofStructLikerows.
-