Package org.apache.iceberg
Interface FileScanTask
-
- All Superinterfaces:
ContentScanTask<DataFile>
,PartitionScanTask
,ScanTask
,java.io.Serializable
,SplittableScanTask<FileScanTask>
- All Known Subinterfaces:
DataTask
- All Known Implementing Classes:
BaseFileScanTask
public interface FileScanTask extends ContentScanTask<DataFile>, SplittableScanTask<FileScanTask>
A scan task over a range of bytes in a single data file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default FileScanTask
asFileScanTask()
Returns this cast toFileScanTask
if it is onejava.util.List<DeleteFile>
deletes()
A list ofdelete files
to apply when reading the task's data file.default int
filesCount()
The number of files that will be opened by this scan task.default boolean
isFileScanTask()
Returns true if this is aFileScanTask
, false otherwise.default long
sizeBytes()
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 Detail
-
deletes
java.util.List<DeleteFile> deletes()
A list ofdelete files
to apply when reading the task's data file.- Returns:
- a list of delete files to apply
-
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
default FileScanTask 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
-
-