Package org.apache.iceberg
Interface DataTask
-
- All Superinterfaces:
ContentScanTask<DataFile>
,FileScanTask
,PartitionScanTask
,ScanTask
,java.io.Serializable
,SplittableScanTask<FileScanTask>
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.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 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.
-
-