public class DataTableBatchScan extends Object
TableScan
implementation for batch planning.TableScan.Plan
Modifier and Type | Field and Description |
---|---|
protected SnapshotReader |
snapshotReader |
Constructor and Description |
---|
DataTableBatchScan(boolean pkTable,
CoreOptions options,
SnapshotReader snapshotReader,
DefaultValueAssigner defaultValueAssigner) |
Modifier and Type | Method and Description |
---|---|
protected StartingScanner |
createStartingScanner(boolean isStreaming) |
org.apache.paimon.table.source.AbstractDataTableScan |
dropStats() |
List<PartitionEntry> |
listPartitionEntries() |
CoreOptions |
options() |
TableScan.Plan |
plan()
Plan splits, throws
EndOfScanException if the scan is ended. |
org.apache.paimon.table.source.AbstractDataTableScan |
withBucket(int bucket) |
org.apache.paimon.table.source.AbstractDataTableScan |
withBucketFilter(Filter<Integer> bucketFilter) |
InnerTableScan |
withFilter(Predicate predicate) |
org.apache.paimon.table.source.AbstractDataTableScan |
withLevelFilter(Filter<Integer> levelFilter) |
InnerTableScan |
withLimit(int limit) |
org.apache.paimon.table.source.AbstractDataTableScan |
withMetricsRegistry(MetricRegistry metricsRegistry) |
org.apache.paimon.table.source.AbstractDataTableScan |
withPartitionFilter(List<BinaryRow> partitions) |
org.apache.paimon.table.source.AbstractDataTableScan |
withPartitionFilter(Map<String,String> partitionSpec) |
org.apache.paimon.table.source.AbstractDataTableScan |
withPartitionsFilter(List<Map<String,String>> partitions) |
DataTableScan |
withShard(int indexOfThisSubtask,
int numberOfParallelSubtasks)
Specify the shard to be read, and allocate sharded files to read records.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
listPartitions
protected final SnapshotReader snapshotReader
public DataTableBatchScan(boolean pkTable, CoreOptions options, SnapshotReader snapshotReader, DefaultValueAssigner defaultValueAssigner)
public InnerTableScan withFilter(Predicate predicate)
public InnerTableScan withLimit(int limit)
public TableScan.Plan plan()
TableScan
EndOfScanException
if the scan is ended.public List<PartitionEntry> listPartitionEntries()
public DataTableScan withShard(int indexOfThisSubtask, int numberOfParallelSubtasks)
DataTableScan
@VisibleForTesting public org.apache.paimon.table.source.AbstractDataTableScan withBucket(int bucket)
public org.apache.paimon.table.source.AbstractDataTableScan withBucketFilter(Filter<Integer> bucketFilter)
withBucketFilter
in interface InnerTableScan
public org.apache.paimon.table.source.AbstractDataTableScan withPartitionFilter(Map<String,String> partitionSpec)
withPartitionFilter
in interface InnerTableScan
public org.apache.paimon.table.source.AbstractDataTableScan withPartitionFilter(List<BinaryRow> partitions)
withPartitionFilter
in interface InnerTableScan
public org.apache.paimon.table.source.AbstractDataTableScan withPartitionsFilter(List<Map<String,String>> partitions)
withPartitionsFilter
in interface InnerTableScan
public org.apache.paimon.table.source.AbstractDataTableScan withLevelFilter(Filter<Integer> levelFilter)
withLevelFilter
in interface InnerTableScan
public org.apache.paimon.table.source.AbstractDataTableScan withMetricsRegistry(MetricRegistry metricsRegistry)
withMetricsRegistry
in interface InnerTableScan
public org.apache.paimon.table.source.AbstractDataTableScan dropStats()
dropStats
in interface InnerTableScan
public CoreOptions options()
protected StartingScanner createStartingScanner(boolean isStreaming)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.