Enum CollectionExecutor.Cost
- java.lang.Object
-
- java.lang.Enum<CollectionExecutor.Cost>
-
- io.siddhi.core.util.collection.executor.CollectionExecutor.Cost
-
- All Implemented Interfaces:
Serializable,Comparable<CollectionExecutor.Cost>
- Enclosing interface:
- CollectionExecutor
public static enum CollectionExecutor.Cost extends Enum<CollectionExecutor.Cost>
Enums to specify operation cost.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXHAUSTIVEMULTI_RETURN_INDEX_MATCHINGSINGLE_RETURN_INDEX_MATCHING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetWeight()static CollectionExecutor.CostvalueOf(String name)Returns the enum constant of this type with the specified name.static CollectionExecutor.Cost[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE_RETURN_INDEX_MATCHING
public static final CollectionExecutor.Cost SINGLE_RETURN_INDEX_MATCHING
-
MULTI_RETURN_INDEX_MATCHING
public static final CollectionExecutor.Cost MULTI_RETURN_INDEX_MATCHING
-
EXHAUSTIVE
public static final CollectionExecutor.Cost EXHAUSTIVE
-
-
Method Detail
-
values
public static CollectionExecutor.Cost[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CollectionExecutor.Cost c : CollectionExecutor.Cost.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CollectionExecutor.Cost valueOf(String name)
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
-
getWeight
public int getWeight()
-
-