Google Cloud Dataflow SDK for Java, version 1.9.1
com.google.cloud.dataflow.sdk.transforms
Class DoFnReflector
- java.lang.Object
-
- com.google.cloud.dataflow.sdk.transforms.DoFnReflector
-
public abstract class DoFnReflector extends Object
Utility implementing the necessary reflection for working withDoFnWithContext
s.
-
-
Constructor Summary
Constructors Constructor and Description DoFnReflector()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description static Class<?>
getDoFnClass(DoFn<?,?> fn)
static DoFnReflector
of(Class<? extends DoFnWithContext> fn)
<InputT,OutputT>
DoFn<InputT,OutputT>toDoFn(DoFnWithContext<InputT,OutputT> fn)
Create aDoFn
that theDoFnWithContext
.abstract boolean
usesSingleWindow()
-
-
-
Method Detail
-
usesSingleWindow
public abstract boolean usesSingleWindow()
- Returns:
- true if the reflected
DoFnWithContext
uses a Single Window.
-
of
public static DoFnReflector of(Class<? extends DoFnWithContext> fn)
- Returns:
- the
DoFnReflector
for the givenDoFnWithContext
.
-
toDoFn
public <InputT,OutputT> DoFn<InputT,OutputT> toDoFn(DoFnWithContext<InputT,OutputT> fn)
Create aDoFn
that theDoFnWithContext
.
-
-