public class SnapshotReaderImpl extends Object implements SnapshotReader
SnapshotReader.SnapshotReader.Plan| Constructor and Description |
|---|
SnapshotReaderImpl(FileStoreScan scan,
TableSchema tableSchema,
CoreOptions options,
SnapshotManager snapshotManager,
ChangelogManager changelogManager,
SplitGenerator splitGenerator,
java.util.function.BiConsumer<FileStoreScan,Predicate> nonPartitionFilterConsumer,
DefaultValueAssigner defaultValueAssigner,
FileStorePathFactory pathFactory,
String tableName,
IndexFileHandler indexFileHandler) |
public SnapshotReaderImpl(FileStoreScan scan, TableSchema tableSchema, CoreOptions options, SnapshotManager snapshotManager, ChangelogManager changelogManager, SplitGenerator splitGenerator, java.util.function.BiConsumer<FileStoreScan,Predicate> nonPartitionFilterConsumer, DefaultValueAssigner defaultValueAssigner, FileStorePathFactory pathFactory, String tableName, IndexFileHandler indexFileHandler)
public Integer parallelism()
parallelism in interface SnapshotReaderpublic SnapshotManager snapshotManager()
snapshotManager in interface SnapshotReaderpublic ChangelogManager changelogManager()
changelogManager in interface SnapshotReaderpublic ManifestsReader manifestsReader()
manifestsReader in interface SnapshotReaderpublic List<ManifestEntry> readManifest(ManifestFileMeta manifest)
readManifest in interface SnapshotReaderpublic ConsumerManager consumerManager()
consumerManager in interface SnapshotReaderpublic SplitGenerator splitGenerator()
splitGenerator in interface SnapshotReaderpublic FileStorePathFactory pathFactory()
pathFactory in interface SnapshotReaderpublic SnapshotReader withSnapshot(long snapshotId)
withSnapshot in interface SnapshotReaderpublic SnapshotReader withSnapshot(Snapshot snapshot)
withSnapshot in interface SnapshotReaderpublic SnapshotReader withPartitionFilter(Map<String,String> partitionSpec)
withPartitionFilter in interface SnapshotReaderpublic SnapshotReader withPartitionFilter(Predicate predicate)
withPartitionFilter in interface SnapshotReaderpublic SnapshotReader withPartitionFilter(List<BinaryRow> partitions)
withPartitionFilter in interface SnapshotReaderpublic SnapshotReader withPartitionsFilter(List<Map<String,String>> partitions)
withPartitionsFilter in interface SnapshotReaderpublic SnapshotReader withFilter(Predicate predicate)
withFilter in interface SnapshotReaderpublic SnapshotReader withMode(ScanMode scanMode)
withMode in interface SnapshotReaderpublic SnapshotReader withLevel(int level)
withLevel in interface SnapshotReaderpublic SnapshotReader withLevelFilter(Filter<Integer> levelFilter)
withLevelFilter in interface SnapshotReaderpublic SnapshotReader enableValueFilter()
enableValueFilter in interface SnapshotReaderpublic SnapshotReader withManifestEntryFilter(Filter<ManifestEntry> filter)
withManifestEntryFilter in interface SnapshotReaderpublic SnapshotReader withBucket(int bucket)
withBucket in interface SnapshotReaderpublic SnapshotReader withBucketFilter(Filter<Integer> bucketFilter)
withBucketFilter in interface SnapshotReaderpublic SnapshotReader withMetricRegistry(MetricRegistry registry)
withMetricRegistry in interface SnapshotReaderpublic SnapshotReader withDataFileNameFilter(Filter<String> fileNameFilter)
withDataFileNameFilter in interface SnapshotReaderpublic SnapshotReader dropStats()
dropStats in interface SnapshotReaderpublic SnapshotReader withShard(int indexOfThisSubtask, int numberOfParallelSubtasks)
withShard in interface SnapshotReaderpublic SnapshotReader.Plan read()
FileKind.ADD files.read in interface SnapshotReaderpublic List<BinaryRow> partitions()
SnapshotReaderpartitions in interface SnapshotReaderpublic List<PartitionEntry> partitionEntries()
partitionEntries in interface SnapshotReaderpublic List<BucketEntry> bucketEntries()
bucketEntries in interface SnapshotReaderpublic Iterator<ManifestEntry> readFileIterator()
readFileIterator in interface SnapshotReaderpublic SnapshotReader.Plan readChanges()
SnapshotReaderreadChanges in interface SnapshotReaderpublic SnapshotReader.Plan readIncrementalDiff(Snapshot before)
readIncrementalDiff in interface SnapshotReaderCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.