Package nz.org.riskscape.engine.pipeline
Interface SinkConstructor
- All Superinterfaces:
AutoCloseable,Realized
A SinkConstructor allows a Sink to be constructed from the set of
execution time ExecutionOptions.
These can be returned from Step.realize(RealizationInput) to allow the pipeline to define various pipeline
specific output options while still allowing some level of execution time customization.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SinkConstructorConstructor for a sink that throws tuples away. -
Method Summary
Modifier and TypeMethodDescriptiondefault StructThe type of tuple that come out of this realized thing, orStruct.EMPTY_STRUCTif nothingnewInstance(PipelineJobContext context) Create a new instance of the tuple consumer (T), returning a failed result if it couldn't be done because of the given execution options or some other environment issue As much as possible, other validation errors should have been surfaced during the realization of thisSinkConstructorfrom the step.
-
Field Details
-
DEVNULL
Constructor for a sink that throws tuples away.
-
-
Method Details
-
newInstance
Create a new instance of the tuple consumer (T), returning a failed result if it couldn't be done because of the given execution options or some other environment issue As much as possible, other validation errors should have been surfaced during the realization of this
SinkConstructorfrom the step. -
getProducedType
Description copied from interface:RealizedThe type of tuple that come out of this realized thing, or
Struct.EMPTY_STRUCTif nothing- Specified by:
getProducedTypein interfaceRealized
-