Package org.neo4j.gds.similarity.nodesim
Record Class NodeSimilarityParameters
java.lang.Object
java.lang.Record
org.neo4j.gds.similarity.nodesim.NodeSimilarityParameters
public record NodeSimilarityParameters(MetricSimilarityComputer similarityComputer, int degreeCutoff, int upperDegreeCutoff, int normalizedK, int normalizedN, boolean computeToStream, boolean hasRelationshipWeightProperty, boolean useComponents, @Nullable String componentProperty)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNodeSimilarityParameters(MetricSimilarityComputer similarityComputer, int degreeCutoff, int upperDegreeCutoff, int normalizedK, int normalizedN, boolean computeToStream, boolean hasRelationshipWeightProperty, boolean useComponents, @Nullable String componentProperty) Creates an instance of aNodeSimilarityParametersrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thecomponentPropertyrecord component.booleanReturns the value of thecomputeToStreamrecord component.intReturns the value of thedegreeCutoffrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasRelationshipWeightPropertyrecord component.intReturns the value of thenormalizedKrecord component.intReturns the value of thenormalizedNrecord component.Returns the value of thesimilarityComputerrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theupperDegreeCutoffrecord component.booleanReturns the value of theuseComponentsrecord component.
-
Constructor Details
-
NodeSimilarityParameters
public NodeSimilarityParameters(MetricSimilarityComputer similarityComputer, int degreeCutoff, int upperDegreeCutoff, int normalizedK, int normalizedN, boolean computeToStream, boolean hasRelationshipWeightProperty, boolean useComponents, @Nullable @Nullable String componentProperty) Creates an instance of aNodeSimilarityParametersrecord class.- Parameters:
similarityComputer- the value for thesimilarityComputerrecord componentdegreeCutoff- the value for thedegreeCutoffrecord componentupperDegreeCutoff- the value for theupperDegreeCutoffrecord componentnormalizedK- the value for thenormalizedKrecord componentnormalizedN- the value for thenormalizedNrecord componentcomputeToStream- the value for thecomputeToStreamrecord componenthasRelationshipWeightProperty- the value for thehasRelationshipWeightPropertyrecord componentuseComponents- the value for theuseComponentsrecord componentcomponentProperty- the value for thecomponentPropertyrecord component
-
-
Method Details
-
memoryParameters
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
similarityComputer
Returns the value of thesimilarityComputerrecord component.- Returns:
- the value of the
similarityComputerrecord component
-
degreeCutoff
public int degreeCutoff()Returns the value of thedegreeCutoffrecord component.- Returns:
- the value of the
degreeCutoffrecord component
-
upperDegreeCutoff
public int upperDegreeCutoff()Returns the value of theupperDegreeCutoffrecord component.- Returns:
- the value of the
upperDegreeCutoffrecord component
-
normalizedK
public int normalizedK()Returns the value of thenormalizedKrecord component.- Returns:
- the value of the
normalizedKrecord component
-
normalizedN
public int normalizedN()Returns the value of thenormalizedNrecord component.- Returns:
- the value of the
normalizedNrecord component
-
computeToStream
public boolean computeToStream()Returns the value of thecomputeToStreamrecord component.- Returns:
- the value of the
computeToStreamrecord component
-
hasRelationshipWeightProperty
public boolean hasRelationshipWeightProperty()Returns the value of thehasRelationshipWeightPropertyrecord component.- Returns:
- the value of the
hasRelationshipWeightPropertyrecord component
-
useComponents
public boolean useComponents()Returns the value of theuseComponentsrecord component.- Returns:
- the value of the
useComponentsrecord component
-
componentProperty
Returns the value of thecomponentPropertyrecord component.- Returns:
- the value of the
componentPropertyrecord component
-