Package org.neo4j.gds.similarity.knn
Enum KnnSampler.SamplerType
- java.lang.Object
-
- java.lang.Enum<KnnSampler.SamplerType>
-
- org.neo4j.gds.similarity.knn.KnnSampler.SamplerType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<KnnSampler.SamplerType>
- Enclosing interface:
- KnnSampler
public static enum KnnSampler.SamplerType extends java.lang.Enum<KnnSampler.SamplerType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RANDOMWALKUNIFORM
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KnnSampler.SamplerTypeparse(java.lang.Object input)static java.lang.StringtoString(KnnSampler.SamplerType samplerType)static KnnSampler.SamplerTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static KnnSampler.SamplerType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNIFORM
public static final KnnSampler.SamplerType UNIFORM
-
RANDOMWALK
public static final KnnSampler.SamplerType RANDOMWALK
-
-
Method Detail
-
values
public static KnnSampler.SamplerType[] 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 (KnnSampler.SamplerType c : KnnSampler.SamplerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KnnSampler.SamplerType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
parse
public static KnnSampler.SamplerType parse(java.lang.Object input)
-
toString
public static java.lang.String toString(KnnSampler.SamplerType samplerType)
-
-