public class BaseFileScanTask extends java.lang.Object implements FileScanTask
| Constructor and Description |
|---|
BaseFileScanTask(DataFile file,
DeleteFile[] deletes,
java.lang.String schemaString,
java.lang.String specString,
ResidualEvaluator residuals) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<DeleteFile> |
deletes()
A list of
delete files to apply when reading the task's data file. |
F |
file()
The
file to scan. |
long |
length()
The number of bytes to scan from the
ContentScanTask.start() position in the file. |
protected FileScanTask |
newSplitTask(FileScanTask parentTask,
long offset,
long length) |
Expression |
residual()
Returns the residual expression that should be applied to rows in this file scan.
|
protected FileScanTask |
self() |
PartitionSpec |
spec()
Returns the spec of the partition for this scan task
|
java.lang.Iterable<ThisT> |
split(long targetSplitSize)
Attempts to split this scan task into several smaller scan tasks, each close to
splitSize size. |
long |
start()
The starting position of this scan range in the file.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasFileScanTask, filesCount, isFileScanTask, sizeBytesestimatedRowsCount, file, length, partition, residual, startspecasCombinedScanTask, asDataTask, isDataTasksplitpublic BaseFileScanTask(DataFile file, DeleteFile[] deletes, java.lang.String schemaString, java.lang.String specString, ResidualEvaluator residuals)
protected FileScanTask self()
protected FileScanTask newSplitTask(FileScanTask parentTask, long offset, long length)
public java.util.List<DeleteFile> deletes()
FileScanTaskdelete files to apply when reading the task's data file.deletes in interface FileScanTaskpublic F file()
ContentScanTaskfile to scan.file in interface ContentScanTask<F extends ContentFile<F>>public PartitionSpec spec()
PartitionScanTaskspec in interface PartitionScanTaskpublic long start()
ContentScanTaskstart in interface ContentScanTask<F extends ContentFile<F>>public long length()
ContentScanTaskContentScanTask.start() position in the file.length in interface ContentScanTask<F extends ContentFile<F>>public Expression residual()
ContentScanTaskThe residual expression for a file is a filter expression created by partially evaluating the scan's filter using the file's partition data.
residual in interface ContentScanTask<F extends ContentFile<F>>public java.lang.Iterable<ThisT> split(long targetSplitSize)
SplittableScanTasksplitSize size.
Note the target split size is just guidance and the actual split size may be either smaller or larger. File formats like Parquet may leverage the row group offset information while splitting tasks.
split in interface SplittableScanTask<ThisT extends ContentScanTask<F>>targetSplitSize - the target size of each new scan task in bytespublic java.lang.String toString()
toString in class java.lang.Object