Record Class VectorSearchFragment
java.lang.Object
java.lang.Record
org.springframework.data.neo4j.repository.query.VectorSearchFragment
- Record Components:
indexName- name of the index to use for vector searchnumberOfNodes- number of nodes to fetch from the index searchscore- score filter
-
Constructor Summary
ConstructorsConstructorDescriptionVectorSearchFragment(String indexName, int numberOfNodes, @Nullable Double score) Creates an instance of aVectorSearchFragmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theindexNamerecord component.intReturns the value of thenumberOfNodesrecord component.@Nullable Doublescore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VectorSearchFragment
Creates an instance of aVectorSearchFragmentrecord class.- Parameters:
indexName- the value for theindexNamerecord componentnumberOfNodes- the value for thenumberOfNodesrecord componentscore- the value for thescorerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
indexName
-
numberOfNodes
public int numberOfNodes()Returns the value of thenumberOfNodesrecord component.- Returns:
- the value of the
numberOfNodesrecord component
-
score
-