public class SnapshotReaderImpl extends Object implements SnapshotReader
SnapshotReader.SnapshotReader.Plan| Constructor and Description |
|---|
SnapshotReaderImpl(FileStoreScan scan,
TableSchema tableSchema,
CoreOptions options,
SnapshotManager snapshotManager,
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, SplitGenerator splitGenerator, java.util.function.BiConsumer<FileStoreScan,Predicate> nonPartitionFilterConsumer, DefaultValueAssigner defaultValueAssigner, FileStorePathFactory pathFactory, String tableName, IndexFileHandler indexFileHandler)
public SnapshotManager snapshotManager()
snapshotManager in interface SnapshotReaderpublic ConsumerManager consumerManager()
consumerManager in interface SnapshotReaderpublic SplitGenerator splitGenerator()
splitGenerator 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 withFilter(Predicate predicate)
withFilter in interface SnapshotReaderpublic SnapshotReader withMode(ScanMode scanMode)
withMode in interface SnapshotReaderpublic SnapshotReader withLevelFilter(Filter<Integer> levelFilter)
withLevelFilter 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 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 SnapshotReader.Plan readChanges()
SnapshotReaderreadChanges in interface SnapshotReaderpublic SnapshotReader.Plan readIncrementalDiff(Snapshot before)
readIncrementalDiff in interface SnapshotReaderCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.