public abstract class AbstractFileStoreScan extends Object implements FileStoreScan
FileStoreScan.FileStoreScan.Plan| Constructor and Description |
|---|
AbstractFileStoreScan(ManifestsReader manifestsReader,
SnapshotManager snapshotManager,
SchemaManager schemaManager,
TableSchema schema,
ManifestFile.Factory manifestFileFactory,
Integer parallelism) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlistPartitions, totalRecordCountprotected ScanMode scanMode
public AbstractFileStoreScan(ManifestsReader manifestsReader, SnapshotManager snapshotManager, SchemaManager schemaManager, TableSchema schema, ManifestFile.Factory manifestFileFactory, @Nullable Integer parallelism)
public FileStoreScan withPartitionFilter(Predicate predicate)
withPartitionFilter in interface FileStoreScanpublic FileStoreScan withPartitionFilter(List<BinaryRow> partitions)
withPartitionFilter in interface FileStoreScanpublic FileStoreScan withPartitionsFilter(List<Map<String,String>> partitions)
withPartitionsFilter in interface FileStoreScanpublic FileStoreScan withPartitionFilter(PartitionPredicate predicate)
withPartitionFilter in interface FileStoreScanpublic FileStoreScan onlyReadRealBuckets()
onlyReadRealBuckets in interface FileStoreScanpublic FileStoreScan withBucket(int bucket)
withBucket in interface FileStoreScanpublic FileStoreScan withBucketFilter(Filter<Integer> bucketFilter)
withBucketFilter in interface FileStoreScanpublic FileStoreScan withTotalAwareBucketFilter(BiFilter<Integer,Integer> totalAwareBucketFilter)
withTotalAwareBucketFilter in interface FileStoreScanpublic FileStoreScan withPartitionBucket(BinaryRow partition, int bucket)
withPartitionBucket in interface FileStoreScanpublic FileStoreScan withSnapshot(long snapshotId)
withSnapshot in interface FileStoreScanpublic FileStoreScan withSnapshot(Snapshot snapshot)
withSnapshot in interface FileStoreScanpublic FileStoreScan withKind(ScanMode scanMode)
withKind in interface FileStoreScanpublic FileStoreScan withLevel(int level)
withLevel in interface FileStoreScanpublic FileStoreScan withLevelFilter(Filter<Integer> levelFilter)
withLevelFilter in interface FileStoreScanpublic FileStoreScan enableValueFilter()
enableValueFilter in interface FileStoreScanpublic FileStoreScan withManifestEntryFilter(Filter<ManifestEntry> filter)
withManifestEntryFilter in interface FileStoreScanpublic FileStoreScan withManifestCacheFilter(ManifestCacheFilter manifestFilter)
withManifestCacheFilter in interface FileStoreScanpublic FileStoreScan withDataFileNameFilter(Filter<String> fileNameFilter)
withDataFileNameFilter in interface FileStoreScanpublic FileStoreScan withMetrics(ScanMetrics metrics)
withMetrics in interface FileStoreScanpublic FileStoreScan dropStats()
dropStats in interface FileStoreScan@Nullable public Integer parallelism()
parallelism in interface FileStoreScanpublic ManifestsReader manifestsReader()
manifestsReader in interface FileStoreScanpublic FileStoreScan.Plan plan()
FileStoreScanFileStoreScan.Plan.plan in interface FileStoreScanpublic List<SimpleFileEntry> readSimpleEntries()
FileStoreScanSimpleFileEntrys, SimpleFileEntry only retains some critical information, so it
cannot perform filtering based on statistical information.readSimpleEntries in interface FileStoreScanpublic List<PartitionEntry> readPartitionEntries()
readPartitionEntries in interface FileStoreScanpublic List<BucketEntry> readBucketEntries()
readBucketEntries in interface FileStoreScanpublic Iterator<ManifestEntry> readFileIterator()
readFileIterator in interface FileStoreScanprotected TableSchema scanTableSchema(long id)
protected abstract boolean filterByStats(ManifestEntry entry)
protected boolean wholeBucketFilterEnabled()
protected List<ManifestEntry> filterWholeBucketByStats(List<ManifestEntry> entries)
public List<ManifestEntry> readManifest(ManifestFileMeta manifest)
readManifest in interface FileStoreScanprotected ManifestEntry dropStats(ManifestEntry entry)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.