public abstract class DataflowExecutionContext extends BatchModeExecutionContext
BatchModeExecutionContext specific to
the Dataflow worker.| Constructor and Description |
|---|
DataflowExecutionContext() |
| Modifier and Type | Method and Description |
|---|---|
abstract SideInputReader |
getSideInputReader(Iterable<? extends com.google.api.services.dataflow.model.SideInputInfo> sideInputInfos)
Returns a
SideInputReader for all the side inputs described in the given
SideInputInfo descriptors. |
abstract SideInputReader |
getSideInputReaderForViews(Iterable<? extends PCollectionView<?>> views)
Returns a
SideInputReader for all the provided views, where the execution context
itself knows how to read data for the view. |
static DataflowExecutionContext |
withoutSideInputs()
Returns a
DataflowExecutionContext that does not support side inputs at all, for
situations when side inputs are not relevant, such as testing. |
createStepContext, getKey, setKey, switchStateKeygetAllStepContexts, getStepContext, noteOutput, noteSideOutputpublic abstract SideInputReader getSideInputReader(Iterable<? extends com.google.api.services.dataflow.model.SideInputInfo> sideInputInfos) throws Exception
SideInputReader for all the side inputs described in the given
SideInputInfo descriptors. By default, throws UnsupportedOperationException.
Individual workers should override this behavior.Exceptionpublic abstract SideInputReader getSideInputReaderForViews(Iterable<? extends PCollectionView<?>> views) throws Exception
SideInputReader for all the provided views, where the execution context
itself knows how to read data for the view. By default, throws
UnsupportedOperationException. Particular workers should override this behavior.Exceptionpublic static DataflowExecutionContext withoutSideInputs()
DataflowExecutionContext that does not support side inputs at all, for
situations when side inputs are not relevant, such as testing.