Package org.apache.iceberg
Interface FileScanTask
- All Superinterfaces:
ContentScanTask<DataFile>
,PartitionScanTask
,ScanTask
,Serializable
,SplittableScanTask<FileScanTask>
- All Known Subinterfaces:
DataTask
- All Known Implementing Classes:
BaseFileScanTask
A scan task over a range of bytes in a single data file.
-
Method Summary
Modifier and TypeMethodDescriptiondefault FileScanTask
Returns this cast toFileScanTask
if it is onedeletes()
A list ofdelete files
to apply when reading the task's data file.default int
The number of files that will be opened by this scan task.default boolean
Returns true if this is aFileScanTask
, false otherwise.default Schema
schema()
Return the schema for this file scan task.default long
The number of bytes that should be read by this scan task.Methods inherited from interface org.apache.iceberg.ContentScanTask
estimatedRowsCount, file, length, partition, residual, start
Methods inherited from interface org.apache.iceberg.PartitionScanTask
spec
Methods inherited from interface org.apache.iceberg.ScanTask
asCombinedScanTask, asDataTask, isDataTask
Methods inherited from interface org.apache.iceberg.SplittableScanTask
split
-
Method Details
-
deletes
List<DeleteFile> deletes()A list ofdelete files
to apply when reading the task's data file.- Returns:
- a list of delete files to apply
-
schema
Return the schema for this file scan task. -
sizeBytes
default long sizeBytes()Description copied from interface:ScanTask
The number of bytes that should be read by this scan task.- Specified by:
sizeBytes
in interfaceContentScanTask<DataFile>
- Specified by:
sizeBytes
in interfaceScanTask
- Returns:
- the total number of bytes to read
-
filesCount
default int filesCount()Description copied from interface:ScanTask
The number of files that will be opened by this scan task.- Specified by:
filesCount
in interfaceScanTask
- Returns:
- the number of files to open
-
isFileScanTask
default boolean isFileScanTask()Description copied from interface:ScanTask
Returns true if this is aFileScanTask
, false otherwise.- Specified by:
isFileScanTask
in interfaceScanTask
-
asFileScanTask
Description copied from interface:ScanTask
Returns this cast toFileScanTask
if it is one- Specified by:
asFileScanTask
in interfaceScanTask
- Returns:
- this cast to
FileScanTask
if it is one
-