Interface EffectorContext
@PublicApi
public interface EffectorContext
A context object for
Effector.getEffectorFunction(Map, EffectorContext),
which allows the effector to require attribute values and inspect the
forest spec being processed.-
Method Summary
Modifier and TypeMethodDescriptionReturns the forest spec processed by the current effector invocation.voidrequireAttribute(AttributeSpec<?> attribute) Allows the effector to require an attribute that it needs in order to produce effects.
-
Method Details
-
requireAttribute
Allows the effector to require an attribute that it needs in order to produce effects.
Required attribute values for all processed rows, if available, will be passed to
EffectorFunction.produceEffects(ItemForest, RowValues, EffectCollector, ProgressSink).- Parameters:
attribute- the attribute spec
-
getForestSpec
Returns the forest spec processed by the current effector invocation.
-