Enum DamBehavior
- All Implemented Interfaces:
Serializable,Comparable<DamBehavior>
Enumeration for the different dam behaviors of an algorithm or a driver strategy. The dam
behavior describes whether records pass through the algorithm (no dam), whether all records are
collected before the first is returned (full dam) or whether a certain large amount is collected
before the algorithm returns records.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConstant indicating that the algorithm collects all records before returning any.Constant indicating that the algorithm materialized (some) records, but may return records before all records are read.Constant indicating that the algorithm does not come with any form of dam and records pass through in a pipelined fashion. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether this enumeration represents some form of materialization, either with a full dam or without.static DamBehaviorReturns the enum constant of this type with the specified name.static DamBehavior[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PIPELINED
Constant indicating that the algorithm does not come with any form of dam and records pass through in a pipelined fashion. -
MATERIALIZING
Constant indicating that the algorithm materialized (some) records, but may return records before all records are read. -
FULL_DAM
Constant indicating that the algorithm collects all records before returning any.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
isMaterializing
public boolean isMaterializing()Checks whether this enumeration represents some form of materialization, either with a full dam or without.- Returns:
- True, if this enumeration constant represents a materializing behavior, false otherwise.
-