クラス PartitionStepBuilder
java.lang.ObjectSE
org.springframework.batch.core.step.builder.StepBuilderHelper<PartitionStepBuilder>
org.springframework.batch.core.step.builder.PartitionStepBuilder
- 既知の直属サブクラス
RemotePartitioningManagerStepBuilder
PartitionStep
インスタンスのステップビルダー。パーティションステップは、(実行コンテキストの形式で)異なる入力パラメーターを使用して同じステップを(場合によってはリモートで)複数回実行します。並列化に役立ちます。- 導入:
- 2.2
- 作成者:
- Dave Syer, Mahmoud Ben Hassine, Dimitrios Liapis
ネストされたクラスのサマリー
クラス org.springframework.batch.core.step.builder.StepBuilderHelper から継承されたネストクラス / インターフェース
StepBuilderHelper.CommonStepProperties
フィールドサマリー
クラス org.springframework.batch.core.step.builder.StepBuilderHelper から継承されたフィールド
logger, properties
コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明aggregator
(StepExecutionAggregator aggregator) 区分化されたステップ実行をPartitionStep
自体の単一の結果に集約するためのステップ実行アグリゲーターを提供します。build()
protected StepExecutionAggregator
protected int
protected Partitioner
protected PartitionHandler
protected StepExecutionSplitter
protected Step
getStep()
protected StringSE
protected org.springframework.core.task.TaskExecutor
gridSize
(int gridSize) 必要なステップ実行の数に関するsplitter(StepExecutionSplitter)
へのヒント。partitioner
(StringSE workerStepName, Partitioner partitioner) StepExecutionSplitter
の作成に使用できるパーティショナーを追加します。partitionHandler
(PartitionHandler partitionHandler) パーティションステップの作業を実行する明示的なパーティションハンドラーを提供します。protected PartitionStepBuilder
self()
splitter
(StepExecutionSplitter splitter) partitioner(String, Partitioner)
から 1 つのビルドを作成する代わりに、明示的なStepExecutionSplitter
を提供します。並列実行する実際のステップインスタンスを提供します。taskExecutor
(org.springframework.core.task.TaskExecutor taskExecutor) step(Step)
からPartitionHandler
を構築するときに使用するタスクエグゼキュータを提供します。クラス org.springframework.batch.core.step.builder.StepBuilderHelper から継承されたメソッド
allowStartIfComplete, enhance, getJobRepository, getName, isAllowStartIfComplete, listener, listener, meterRegistry, observationConvention, observationRegistry, repository, startLimit
コンストラクターの詳細
PartitionStepBuilder
親のプロパティで初期化された新しいビルダーを作成します。親がコピーされるため、再利用できます。- パラメーター:
parent
- 共通のステッププロパティを含む親ヘルパー
メソッドの詳細
partitioner
StepExecutionSplitter
の作成に使用できるパーティショナーを追加します。これまたは明示的なsplitter(StepExecutionSplitter)
のいずれかを使用しますが、両方は使用しません。- パラメーター:
workerStepName
- ワーカーステップの名前 (ステップ実行名の作成に使用)partitioner
- 使用するパーティショナー- 戻り値:
- 流れるようなチェーン用
step
並列実行する実際のステップインスタンスを提供します。明示的なpartitionHandler(PartitionHandler)
が提供される場合、ステップはオプションであり、構成データ(ステップの名前およびその他の基本プロパティ)を抽出するためにのみ使用されます。- パラメーター:
step
- 並行して実行するステップ- 戻り値:
- 流れるようなチェーン用
taskExecutor
step(Step)
からPartitionHandler
を構築するときに使用するタスクエグゼキュータを提供します。主にローカルで並行してステップを実行するために使用されますが、ステップがリモートの場合はリモートで実行するために使用できます。明示的なpartitionHandler(PartitionHandler)
が提供されている場合は使用されません。- パラメーター:
taskExecutor
- ステップを並行して実行するときに使用するタスクエグゼキュータ- 戻り値:
- 流れるようなチェーン用
partitionHandler
パーティションステップの作業を実行する明示的なパーティションハンドラーを提供します。パーティションハンドラーは、パーティションステップを特定の分散計算環境に適合させるためのメイン SPI です。ステップインターフェースを介したローカルまたはリモート処理のみが必要な場合はオプション。- パラメーター:
partitionHandler
- パーティションハンドラー- 戻り値:
- 流れるようなチェーン用
- 関連事項:
gridSize
必要なステップ実行の数に関するsplitter(StepExecutionSplitter)
へのヒント。taskExecutor(TaskExecutor)
を介してローカルまたはリモートで実行する場合、パーティションのステップ実行の最初の試行でのステップ実行の数を正確に決定します。- パラメーター:
gridSize
- グリッドサイズ- 戻り値:
- 流れるようなチェーン用
splitter
partitioner(String, Partitioner)
から 1 つのビルドを作成する代わりに、明示的なStepExecutionSplitter
を提供します。分割をさらに制御する必要がある場合に便利です。- パラメーター:
splitter
- ステップ実行スプリッター- 戻り値:
- 流れるようなチェーン用
aggregator
区分化されたステップ実行をPartitionStep
自体の単一の結果に集約するためのステップ実行アグリゲーターを提供します。デフォルトは、ほとんどの場合に機能する単純な実装です。- パラメーター:
aggregator
- ステップ実行アグリゲーター- 戻り値:
- 流れるようなチェーン用
build
self
- 次で指定:
- クラス
StepBuilderHelper<PartitionStepBuilder>
のself
getTaskExecutor
protected org.springframework.core.task.TaskExecutor getTaskExecutor()getPartitioner
getStep
getPartitionHandler
getGridSize
protected int getGridSize()getSplitter
getAggregator
getStepName