Package io.github.jbellis.jvector.graph
Class HazelcastGraphIndexView
java.lang.Object
io.github.jbellis.jvector.graph.HazelcastGraphIndexView
- All Implemented Interfaces:
io.github.jbellis.jvector.graph.GraphIndex.View<float[]>,AutoCloseable
public class HazelcastGraphIndexView
extends Object
implements io.github.jbellis.jvector.graph.GraphIndex.View<float[]>
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static HazelcastGraphIndexViewcreate(io.github.jbellis.jvector.graph.OnHeapGraphIndex<float[]> index) intintio.github.jbellis.jvector.graph.NodesIteratorgetNeighborsIterator(int node) float[]getVector(int node) io.github.jbellis.jvector.util.Bitsintsize()toString()
-
Method Details
-
create
public static HazelcastGraphIndexView create(io.github.jbellis.jvector.graph.OnHeapGraphIndex<float[]> index) -
getVector
public float[] getVector(int node) - Specified by:
getVectorin interfaceio.github.jbellis.jvector.graph.GraphIndex.View<float[]>
-
getNeighborsIterator
public io.github.jbellis.jvector.graph.NodesIterator getNeighborsIterator(int node) - Specified by:
getNeighborsIteratorin interfaceio.github.jbellis.jvector.graph.GraphIndex.View<float[]>
-
size
public int size()- Specified by:
sizein interfaceio.github.jbellis.jvector.graph.GraphIndex.View<float[]>
-
entryNode
public int entryNode()- Specified by:
entryNodein interfaceio.github.jbellis.jvector.graph.GraphIndex.View<float[]>
-
toString
-
liveNodes
public io.github.jbellis.jvector.util.Bits liveNodes()- Specified by:
liveNodesin interfaceio.github.jbellis.jvector.graph.GraphIndex.View<float[]>
-
getIdUpperBound
public int getIdUpperBound()- Specified by:
getIdUpperBoundin interfaceio.github.jbellis.jvector.graph.GraphIndex.View<float[]>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-