Package nz.org.riskscape.engine.pipeline
Class NullStep
java.lang.Object
nz.org.riskscape.engine.pipeline.NullStep
- All Implemented Interfaces:
Identified,Step
A Pipeline Step that does nothing. It is mostly here for completeness and is useful in cases where
a null might want to be returned or where something needs to be present that isn't an actual useful thing. If
realized, this step produces an empty relation that yields an empty struct.
TODO We may want to tweak it slightly so that if given input it yields
a Restrictor that always says no.
-
Field Summary
FieldsFields inherited from interface nz.org.riskscape.engine.pipeline.Step
FUNCTOR_INTERFACES -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClassMethods inherited from interface nz.org.riskscape.engine.pipeline.Step
getDeclaredParameter, getDeclaredParameterNames, getDeclaredParameters, getDefaultInputName, getInputNames, hasNamedInput
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NullStep
public NullStep()
-
-
Method Details
-
getParameterSet
Description copied from interface:StepThe set of
Parameters this step accepts. These should be used to populate a map for theStep.realize(RealizationInput)method- Specified by:
getParameterSetin interfaceStep
-
getInputArity
- Specified by:
getInputArityin interfaceStep- Returns:
- a range that describes the number of inputs this step supports. NB a bit unsure whether we really need this - at the moment it's defined by the functor... but it's possible we might need a n-input join functor...
-
realize
Description copied from interface:StepProduce a new pipeline that is the result of realizing this step against the input.
-
getId
- Specified by:
getIdin interfaceIdentified- Returns:
- id
-
getDescription
- Specified by:
getDescriptionin interfaceStep- Returns:
- A human digestible description for this step.
-
toString
-