Package com.redis.vl.extensions.router
Enum Class DistanceAggregationMethod
- All Implemented Interfaces:
Serializable
,Comparable<DistanceAggregationMethod>
,Constable
Enumeration for distance aggregation methods. Ported from Python:
redisvl/extensions/router/schema.py:50
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DistanceAggregationMethod
Get the DistanceAggregationMethod from a string value.getValue()
Get the string value of the aggregation method.static DistanceAggregationMethod
Returns the enum constant of this class with the specified name.static DistanceAggregationMethod[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AVG
Average aggregation method -
MIN
Minimum aggregation method -
SUM
Sum aggregation method
-
-
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
-
getValue
Get the string value of the aggregation method.- Returns:
- the string value
-
fromValue
Get the DistanceAggregationMethod from a string value.- Parameters:
value
- the string value- Returns:
- the corresponding DistanceAggregationMethod
- Throws:
IllegalArgumentException
- if the value is unknown
-