Package nz.org.riskscape.engine.pipeline
Enum Class Collector.Characteristic
- All Implemented Interfaces:
Serializable
,Comparable<Collector.Characteristic>
,Constable
A set of characteristics a collector can have which allow the PipelineExecutor
to better optimise and
organize execution.
Currently only PARALLELIZABLE exists, but others might be added, such as whether accumulators share state (so there will be some level of locking).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe collector can be parallelized by creating multiple accumulators and combining them before processing. -
Method Summary
Modifier and TypeMethodDescriptionstatic Collector.Characteristic
Returns the enum constant of this class with the specified name.static Collector.Characteristic[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PARALLELIZABLE
The collector can be parallelized by creating multiple accumulators and combining them before processing.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-