@Internal public class DoFnSignatures extends java.lang.Object
DoFnSignature
. See getSignature(java.lang.Class<FnT>)
.Modifier and Type | Method and Description |
---|---|
static <FnT extends DoFn<?,?>> |
getSignature(java.lang.Class<FnT> fn) |
static StateSpec<?> |
getStateSpecOrThrow(DoFnSignature.StateDeclaration stateDeclaration,
DoFn<?,?> target) |
static TimerSpec |
getTimerFamilySpecOrThrow(DoFnSignature.TimerFamilyDeclaration timerFamilyDeclaration,
DoFn<?,?> target) |
static TimerSpec |
getTimerSpecOrThrow(DoFnSignature.TimerDeclaration timerDeclaration,
DoFn<?,?> target) |
static boolean |
isSplittable(DoFn<?,?> doFn) |
static boolean |
isStateful(DoFn<?,?> doFn) |
static boolean |
requiresTimeSortedInput(DoFn<?,?> doFn) |
static <FnT extends DoFn<?,?>> |
signatureForDoFn(FnT fn) |
static boolean |
usesBagState(DoFn<?,?> doFn) |
static boolean |
usesMapState(DoFn<?,?> doFn) |
static boolean |
usesOrderedListState(DoFn<?,?> doFn) |
static boolean |
usesSetState(DoFn<?,?> doFn) |
static boolean |
usesState(DoFn<?,?> doFn) |
static boolean |
usesTimers(DoFn<?,?> doFn) |
static boolean |
usesValueState(DoFn<?,?> doFn) |
static boolean |
usesWatermarkHold(DoFn<?,?> doFn) |
public static <FnT extends DoFn<?,?>> DoFnSignature signatureForDoFn(FnT fn)
DoFnSignature
for the given DoFn
instance.public static <FnT extends DoFn<?,?>> DoFnSignature getSignature(java.lang.Class<FnT> fn)
DoFnSignature
for the given DoFn
subclass.public static StateSpec<?> getStateSpecOrThrow(DoFnSignature.StateDeclaration stateDeclaration, DoFn<?,?> target)
public static TimerSpec getTimerSpecOrThrow(DoFnSignature.TimerDeclaration timerDeclaration, DoFn<?,?> target)
public static TimerSpec getTimerFamilySpecOrThrow(DoFnSignature.TimerFamilyDeclaration timerFamilyDeclaration, DoFn<?,?> target)
public static boolean isSplittable(DoFn<?,?> doFn)
public static boolean isStateful(DoFn<?,?> doFn)
public static boolean usesMapState(DoFn<?,?> doFn)
public static boolean usesSetState(DoFn<?,?> doFn)
public static boolean usesOrderedListState(DoFn<?,?> doFn)
public static boolean usesValueState(DoFn<?,?> doFn)
public static boolean usesBagState(DoFn<?,?> doFn)
public static boolean usesWatermarkHold(DoFn<?,?> doFn)
public static boolean usesTimers(DoFn<?,?> doFn)
public static boolean usesState(DoFn<?,?> doFn)
public static boolean requiresTimeSortedInput(DoFn<?,?> doFn)