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(TableSchema schema,
CoreOptions options,
SnapshotReader snapshotReader,
TableQueryAuth queryAuth) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
authQuery() |
static StartingScanner |
createCreationTimestampStartingScanner(SnapshotManager snapshotManager,
ChangelogManager changelogManager,
long creationMillis,
boolean changelogDecoupled,
boolean isStreaming) |
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 |
withMetricRegistry(MetricRegistry metricsRegistry)
Set
MetricRegistry to table scan. |
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) |
InnerTableScan |
withReadType(RowType readType) |
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, waitlistPartitionsprotected final SnapshotReader snapshotReader
public DataTableBatchScan(TableSchema schema, CoreOptions options, SnapshotReader snapshotReader, TableQueryAuth queryAuth)
public InnerTableScan withFilter(Predicate predicate)
withFilter in interface InnerTableScanpublic InnerTableScan withLimit(int limit)
public TableScan.Plan plan()
TableScanEndOfScanException if the scan is ended.public List<PartitionEntry> listPartitionEntries()
public DataTableScan withShard(int indexOfThisSubtask, int numberOfParallelSubtasks)
DataTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withBucket(int bucket)
withBucket in interface InnerTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withBucketFilter(Filter<Integer> bucketFilter)
withBucketFilter in interface InnerTableScanpublic InnerTableScan withReadType(@Nullable RowType readType)
withReadType in interface InnerTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withPartitionFilter(Map<String,String> partitionSpec)
withPartitionFilter in interface InnerTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withPartitionFilter(List<BinaryRow> partitions)
withPartitionFilter in interface InnerTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withPartitionsFilter(List<Map<String,String>> partitions)
withPartitionsFilter in interface InnerTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withLevelFilter(Filter<Integer> levelFilter)
withLevelFilter in interface InnerTableScanpublic org.apache.paimon.table.source.AbstractDataTableScan withMetricRegistry(MetricRegistry metricsRegistry)
TableScanMetricRegistry to table scan.withMetricRegistry in interface InnerTableScanwithMetricRegistry in interface TableScanprotected void authQuery()
public org.apache.paimon.table.source.AbstractDataTableScan dropStats()
dropStats in interface InnerTableScanpublic CoreOptions options()
protected StartingScanner createStartingScanner(boolean isStreaming)
public static StartingScanner createCreationTimestampStartingScanner(SnapshotManager snapshotManager, ChangelogManager changelogManager, long creationMillis, boolean changelogDecoupled, boolean isStreaming)
Copyright © 2023–2025 The Apache Software Foundation. All rights reserved.