public abstract class ReactiveWrapperConverters extends ObjectSE
QueryExecutionConverters
のリアクティブ拡張です。このクラスは、クラスパスに基づいて、リアクティブラッパーの可用性とその変換サポートを検出します。リアクティブラッパー型はサポートされている / クラスパス上にある可能性がありますが、変換には追加の依存関係が必要になる場合があります。
注意 : Spring Data 2.4 の時点で、RxJava 1.x のサポートは廃止され、RxJava 2 および 3 が優先されます。
ReactiveWrappers
, ReactiveAdapterRegistry
修飾子と型 | メソッドと説明 |
---|---|
static boolean | canConvert(ClassSE<?> sourceType, ClassSE<?> targetType) sourceType のオブジェクトを targetType に変換できる場合は true を返します。 |
static <T> T | map(ObjectSE reactiveObject, FunctionSE<ObjectSE, ObjectSE> converter) リアクティブ要素ストリームの要素を他の要素にマップします。 |
static boolean | supports(ClassSE<?> type) 指定された型がラッパー型変換でサポートされているかどうかを返します。 |
static <T> T | toWrapper(ObjectSE reactiveObject, ClassSE<? extends T> targetWrapperType) 指定されたラッパー型をターゲットラッパー型にキャストまたは採用します。 |
static TypeInformation<?> | unwrapWrapperTypes(TypeInformation<?> type) 指定された TypeInformation から既知のラッパー型を再帰的にアンラップします。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public static boolean supports(ClassSE<?> type)
NOTE: リアクティブラッパー型は、一般に ReactiveWrappers.supports(Class)
でサポートされている可能性がありますが、このメソッドを使用した変換では必ずしもサポートされていません。
type
- null であってはなりません。type
がサポートされるリアクティブラッパー型である場合は true。public static TypeInformation<?> unwrapWrapperTypes(TypeInformation<?> type)
TypeInformation
から既知のラッパー型を再帰的にアンラップします。type
- null であってはなりません。@Nullable public static <T> T toWrapper(ObjectSE reactiveObject, ClassSE<? extends T> targetWrapperType)
reactiveObject
- ストリームは null であってはなりません。targetWrapperType
- null であってはなりません。public static <T> T map(ObjectSE reactiveObject, FunctionSE<ObjectSE,ObjectSE> converter)
reactiveObject
- null であってはなりません。converter
- null であってはなりません。Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.