Package nz.org.riskscape.engine.steps
Class BaseStep<T>
java.lang.Object
nz.org.riskscape.engine.steps.BaseStep<T>
- All Implemented Interfaces:
nz.org.riskscape.engine.Identified
,nz.org.riskscape.engine.pipeline.Step
- Direct Known Subclasses:
AsyncSelectStep
,EnlargeStep
,FilterStep
,GroupByStep
,JoinStep
,ProjectionStep
,RelationInputStep
,SaveStep
,SegmentStep
,SelectStep
,SortStep
,UnionStep
,UnnestStep
-
Field Summary
Fields inherited from interface nz.org.riskscape.engine.pipeline.Step
FUNCTOR_INTERFACES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected nz.org.riskscape.problem.ResultOrProblems<T>
bindInputs
(T parameters, List<nz.org.riskscape.engine.pipeline.RealizedStep> inputs) protected nz.org.riskscape.problem.ResultOrProblems<T>
bindParameters
(nz.org.riskscape.engine.pipeline.RealizationInput input) boolean
findParameterClass
(Class<?> modelClass) nz.org.riskscape.engine.i18n.RiskscapeMessage
nz.org.riskscape.engine.Engine
getId()
final com.google.common.collect.Range<Integer>
protected Object
getParamContext
(String name) Finds a Parameter for a Step based on name.nz.org.riskscape.engine.bind.JavaParameterSet<T>
int
hashCode()
final nz.org.riskscape.problem.ResultOrProblems<? extends nz.org.riskscape.engine.pipeline.Realized>
realize
(nz.org.riskscape.engine.pipeline.RealizationInput input) abstract nz.org.riskscape.problem.ResultOrProblems<? extends nz.org.riskscape.engine.pipeline.Realized>
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.Identified
getIdentifiedClass
Methods inherited from interface nz.org.riskscape.engine.pipeline.Step
getDeclaredParameter, getDeclaredParameterNames, getDeclaredParameters, getDefaultInputName, hasNamedInput
-
Constructor Details
-
BaseStep
public BaseStep(nz.org.riskscape.engine.Engine engine) -
BaseStep
-
-
Method Details
-
getId
- Specified by:
getId
in interfacenz.org.riskscape.engine.Identified
-
getDescription
public nz.org.riskscape.engine.i18n.RiskscapeMessage getDescription()- Specified by:
getDescription
in interfacenz.org.riskscape.engine.pipeline.Step
- Returns:
- A human digestible description for this step.
-
getInputArity
- Specified by:
getInputArity
in interfacenz.org.riskscape.engine.pipeline.Step
-
realize
public final nz.org.riskscape.problem.ResultOrProblems<? extends nz.org.riskscape.engine.pipeline.Realized> realize(nz.org.riskscape.engine.pipeline.RealizationInput input) - Specified by:
realize
in interfacenz.org.riskscape.engine.pipeline.Step
-
realize
public abstract nz.org.riskscape.problem.ResultOrProblems<? extends nz.org.riskscape.engine.pipeline.Realized> realize(T parameters) -
bindInputs
-
findParameterClass
-
equals
-
bindParameters
protected nz.org.riskscape.problem.ResultOrProblems<T> bindParameters(nz.org.riskscape.engine.pipeline.RealizationInput input) -
hashCode
public int hashCode() -
toString
-
getParamContext
Finds a Parameter for a Step based on name. This is a helper intended for Step sub-classes to report a Problem for a given parameter.
- Returns:
- the Parameter matching the name given, or null if no match was found
-
getParameterSet
- Specified by:
getParameterSet
in interfacenz.org.riskscape.engine.pipeline.Step
-
getEngine
public nz.org.riskscape.engine.Engine getEngine() -
getInputNames
- Specified by:
getInputNames
in interfacenz.org.riskscape.engine.pipeline.Step
-