public class DynamicChunkSplitter extends ChunkSplitter
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DynamicChunkSplitter.ChunkRange |
config, connectionProvider, jdbcDialect| 构造器和说明 |
|---|
DynamicChunkSplitter(JdbcSourceConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Collection<JdbcSourceSplit> |
createSplits(JdbcSourceTable table,
SeaTunnelRowType splitKey) |
protected PreparedStatement |
createSplitStatement(JdbcSourceSplit split) |
static List<DynamicChunkSplitter.ChunkRange> |
efficientShardingThroughSampling(TablePath tablePath,
Object[] sampleData,
long approximateRowCnt,
int shardCount) |
close, create, createPreparedStatement, createSingleSplit, createSingleSplitStatement, createSplitId, findSplitKey, generateSplits, generateSplitStatement, getOrEstablishConnection, isSupportSplitColumn, queryMin, queryMinMaxpublic DynamicChunkSplitter(JdbcSourceConfig config)
protected Collection<JdbcSourceSplit> createSplits(JdbcSourceTable table, SeaTunnelRowType splitKey) throws SQLException
createSplits 在类中 ChunkSplitterSQLExceptionprotected PreparedStatement createSplitStatement(JdbcSourceSplit split) throws SQLException
createSplitStatement 在类中 ChunkSplitterSQLExceptionpublic static List<DynamicChunkSplitter.ChunkRange> efficientShardingThroughSampling(TablePath tablePath, Object[] sampleData, long approximateRowCnt, int shardCount)
Copyright © 2024 The Apache Software Foundation. All rights reserved.