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 FileScanTaskReturns this cast toFileScanTaskif it is onedeletes()A list ofdelete filesto apply when reading the task's data file.default intThe number of files that will be opened by this scan task.default booleanReturns true if this is aFileScanTask, false otherwise.default Schemaschema()Return the schema for this file scan task.default longThe number of bytes that should be read by this scan task.Methods inherited from interface org.apache.iceberg.ContentScanTask
estimatedRowsCount, file, length, partition, residual, startMethods inherited from interface org.apache.iceberg.PartitionScanTask
specMethods inherited from interface org.apache.iceberg.ScanTask
asCombinedScanTask, asDataTask, isDataTaskMethods inherited from interface org.apache.iceberg.SplittableScanTask
split
-
Method Details
-
deletes
List<DeleteFile> deletes()A list ofdelete filesto 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:ScanTaskThe number of bytes that should be read by this scan task.- Specified by:
sizeBytesin interfaceContentScanTask<DataFile>- Specified by:
sizeBytesin interfaceScanTask- Returns:
- the total number of bytes to read
-
filesCount
default int filesCount()Description copied from interface:ScanTaskThe number of files that will be opened by this scan task.- Specified by:
filesCountin interfaceScanTask- Returns:
- the number of files to open
-
isFileScanTask
default boolean isFileScanTask()Description copied from interface:ScanTaskReturns true if this is aFileScanTask, false otherwise.- Specified by:
isFileScanTaskin interfaceScanTask
-
asFileScanTask
Description copied from interface:ScanTaskReturns this cast toFileScanTaskif it is one- Specified by:
asFileScanTaskin interfaceScanTask- Returns:
- this cast to
FileScanTaskif it is one
-