public abstract class AbstractFileStoreScan extends Object implements FileStoreScan
FileStoreScan
.FileStoreScan.Plan
Modifier and Type | Field and Description |
---|---|
protected ScanBucketFilter |
bucketKeyFilter |
protected ScanMode |
scanMode |
Constructor and Description |
---|
AbstractFileStoreScan(RowType partitionType,
ScanBucketFilter bucketKeyFilter,
SnapshotManager snapshotManager,
SchemaManager schemaManager,
TableSchema schema,
ManifestFile.Factory manifestFileFactory,
ManifestList.Factory manifestListFactory,
int numOfBuckets,
boolean checkNumOfBuckets,
Integer scanManifestParallelism) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
listPartitions, totalRecordCount
protected final ScanBucketFilter bucketKeyFilter
protected ScanMode scanMode
public AbstractFileStoreScan(RowType partitionType, ScanBucketFilter bucketKeyFilter, SnapshotManager snapshotManager, SchemaManager schemaManager, TableSchema schema, ManifestFile.Factory manifestFileFactory, ManifestList.Factory manifestListFactory, int numOfBuckets, boolean checkNumOfBuckets, Integer scanManifestParallelism)
public FileStoreScan withPartitionFilter(Predicate predicate)
withPartitionFilter
in interface FileStoreScan
public FileStoreScan withPartitionFilter(List<BinaryRow> partitions)
withPartitionFilter
in interface FileStoreScan
public FileStoreScan withPartitionFilter(PartitionPredicate predicate)
withPartitionFilter
in interface FileStoreScan
public FileStoreScan withBucket(int bucket)
withBucket
in interface FileStoreScan
public FileStoreScan withBucketFilter(Filter<Integer> bucketFilter)
withBucketFilter
in interface FileStoreScan
public FileStoreScan withPartitionBucket(BinaryRow partition, int bucket)
withPartitionBucket
in interface FileStoreScan
public FileStoreScan withSnapshot(long snapshotId)
withSnapshot
in interface FileStoreScan
public FileStoreScan withSnapshot(Snapshot snapshot)
withSnapshot
in interface FileStoreScan
public FileStoreScan withManifestList(List<ManifestFileMeta> manifests)
withManifestList
in interface FileStoreScan
public FileStoreScan withKind(ScanMode scanMode)
withKind
in interface FileStoreScan
public FileStoreScan withLevelFilter(Filter<Integer> levelFilter)
withLevelFilter
in interface FileStoreScan
public FileStoreScan withManifestEntryFilter(Filter<ManifestEntry> filter)
withManifestEntryFilter
in interface FileStoreScan
public FileStoreScan withManifestCacheFilter(ManifestCacheFilter manifestFilter)
withManifestCacheFilter
in interface FileStoreScan
public FileStoreScan withDataFileNameFilter(Filter<String> fileNameFilter)
withDataFileNameFilter
in interface FileStoreScan
public FileStoreScan withMetrics(ScanMetrics metrics)
withMetrics
in interface FileStoreScan
public FileStoreScan.Plan plan()
FileStoreScan
FileStoreScan.Plan
.plan
in interface FileStoreScan
public List<SimpleFileEntry> readSimpleEntries()
FileStoreScan
SimpleFileEntry
s, SimpleFileEntry only retains some critical information, so it
cannot perform filtering based on statistical information.readSimpleEntries
in interface FileStoreScan
public List<PartitionEntry> readPartitionEntries()
readPartitionEntries
in interface FileStoreScan
public List<BucketEntry> readBucketEntries()
readBucketEntries
in interface FileStoreScan
public <T extends FileEntry> Collection<T> readAndMergeFileEntries(List<ManifestFileMeta> manifests, java.util.function.Function<ManifestFileMeta,List<T>> manifestReader, @Nullable Filter<T> filterUnmergedEntry)
protected TableSchema scanTableSchema(long id)
protected abstract boolean filterByStats(ManifestEntry entry)
protected abstract List<ManifestEntry> filterWholeBucketByStats(List<ManifestEntry> entries)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.