Package org.apache.lucene.util.hnsw
Record Class IncrementalHnswGraphMerger.GraphReader
java.lang.Object
java.lang.Record
org.apache.lucene.util.hnsw.IncrementalHnswGraphMerger.GraphReader
- Enclosing class:
IncrementalHnswGraphMerger
protected static record IncrementalHnswGraphMerger.GraphReader(KnnVectorsReader reader, MergeState.DocMap initDocMap, int graphSize)
extends Record
Represents a vector reader that contains graph info.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GraphReader
(KnnVectorsReader reader, MergeState.DocMap initDocMap, int graphSize) Creates an instance of aGraphReader
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
Returns the value of thegraphSize
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinitDocMap
record component.reader()
Returns the value of thereader
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GraphReader
Creates an instance of aGraphReader
record class.- Parameters:
reader
- the value for thereader
record componentinitDocMap
- the value for theinitDocMap
record componentgraphSize
- the value for thegraphSize
record component
-
-
Method Details
-
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 '=='. -
reader
Returns the value of thereader
record component.- Returns:
- the value of the
reader
record component
-
initDocMap
Returns the value of theinitDocMap
record component.- Returns:
- the value of the
initDocMap
record component
-
graphSize
public int graphSize()Returns the value of thegraphSize
record component.- Returns:
- the value of the
graphSize
record component
-