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 DataTask
Returns this cast toDataTask
if it is onedefault boolean
Returns true if this is aDataTask
, false otherwise.rows()
Returns an iterable ofStructLike
rows.Methods inherited from interface org.apache.iceberg.ContentScanTask
estimatedRowsCount, file, length, partition, residual, start
Methods inherited from interface org.apache.iceberg.FileScanTask
asFileScanTask, deletes, filesCount, isFileScanTask, schema, sizeBytes
Methods inherited from interface org.apache.iceberg.PartitionScanTask
spec
Methods inherited from interface org.apache.iceberg.ScanTask
asCombinedScanTask
Methods inherited from interface org.apache.iceberg.SplittableScanTask
split
-
Method Details
-
isDataTask
default boolean isDataTask()Description copied from interface:ScanTask
Returns true if this is aDataTask
, false otherwise.- Specified by:
isDataTask
in interfaceScanTask
-
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.
-