DtsPipelineComponentAttribute.SupportsBackPressure プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
複数の入力をサポートするコンポーネントとして識別し、入力が不均一な速度でデータを生成した場合に過剰なメモリ使用を処理するオプションの手法を実装します。
public:
property bool SupportsBackPressure { bool get(); void set(bool value); };
public bool SupportsBackPressure { get; set; }
member this.SupportsBackPressure : bool with get, set
Public Property SupportsBackPressure As Boolean
プロパティ値
コンポーネントが複数の入力をサポートし、入力が不均一な速度でデータを生成した場合に過剰なメモリ使用を処理するオプションの方法を実装している場合、そうでなければ、誤りです。
例
以下の例では、 DtsPipelineComponentAttribute クラスの実装により、 SupportsBackPressure プロパティの値を trueに設定します。
[DtsPipelineComponent(ComponentType = ComponentType.Transform,
DisplayName = "Shuffler",
Description = "Shuffle the rows from input.",
SupportsBackPressure = true,
LocalizationType = typeof(Localized),
IconResource = "Microsoft.Samples.SqlServer.Dts.MIBPComponent.ico")
]
public class Shuffler : Microsoft.SqlServer.Dts.Pipeline.PipelineComponent
{
...
}
注釈
複数の入力をサポートするカスタムデータフローコンポーネントのメモリ管理を改善する最初のステップは、T:Microsoft.SqlServer.Dts.Pipeline.DtsPipelineComponentAttributeでSupportsBackPressureプロパティの値をtrueに設定することです。
SupportsBackPressureの値がtrueされると、データフローエンジンはMicrosoft.SqlServer.Dts.Pipeline.PipelineComponent.IsInputReadyメソッドを呼び出し、入力が2つ以上の場合は実行時にMicrosoft.SqlServer.Dts.Pipeline.PipelineComponent.GetDependentInputsメソッドを呼び出します。
カスタムdata flowコンポーネントの入力が不均一な速度でデータを生成した場合の過剰なメモリ使用の処理については、「複数入力を持つData Flowコンポーネントの開発」を参照してください。