Package org.apache.iceberg
Class BaseCombinedScanTask
- java.lang.Object
-
- org.apache.iceberg.BaseCombinedScanTask
-
- All Implemented Interfaces:
java.io.Serializable
,CombinedScanTask
,ScanTask
,ScanTaskGroup<FileScanTask>
public class BaseCombinedScanTask extends java.lang.Object implements CombinedScanTask
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BaseCombinedScanTask(java.util.List<FileScanTask> tasks)
BaseCombinedScanTask(FileScanTask... tasks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
estimatedRowsCount()
The estimated number of rows produced by this scan task.java.util.Collection<FileScanTask>
files()
Return thetasks
in this combined task.int
filesCount()
The number of files that will be opened by this scan task.long
sizeBytes()
The number of bytes that should be read by this scan task.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.iceberg.CombinedScanTask
asCombinedScanTask, tasks
-
Methods inherited from interface org.apache.iceberg.ScanTask
asDataTask, asFileScanTask, isDataTask, isFileScanTask
-
Methods inherited from interface org.apache.iceberg.ScanTaskGroup
groupingKey
-
-
-
-
Constructor Detail
-
BaseCombinedScanTask
public BaseCombinedScanTask(FileScanTask... tasks)
-
BaseCombinedScanTask
public BaseCombinedScanTask(java.util.List<FileScanTask> tasks)
-
-
Method Detail
-
files
public java.util.Collection<FileScanTask> files()
Description copied from interface:CombinedScanTask
Return thetasks
in this combined task.- Specified by:
files
in interfaceCombinedScanTask
- Returns:
- a Collection of FileScanTask instances.
-
sizeBytes
public long sizeBytes()
Description copied from interface:ScanTask
The number of bytes that should be read by this scan task.- Specified by:
sizeBytes
in interfaceScanTask
- Specified by:
sizeBytes
in interfaceScanTaskGroup<FileScanTask>
- Returns:
- the total number of bytes to read
-
estimatedRowsCount
public long estimatedRowsCount()
Description copied from interface:ScanTask
The estimated number of rows produced by this scan task.- Specified by:
estimatedRowsCount
in interfaceScanTask
- Specified by:
estimatedRowsCount
in interfaceScanTaskGroup<FileScanTask>
- Returns:
- the estimated number of produced rows
-
filesCount
public int filesCount()
Description copied from interface:ScanTask
The number of files that will be opened by this scan task.- Specified by:
filesCount
in interfaceScanTask
- Specified by:
filesCount
in interfaceScanTaskGroup<FileScanTask>
- Returns:
- the number of files to open
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-