Package io.github.jbellis.jvector.disk
Class GraphCache
java.lang.Object
io.github.jbellis.jvector.disk.GraphCache
- All Implemented Interfaces:
Accountable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GraphCache.CachedNodegetNode(int ordinal) return the cached node if present, or null if notstatic GraphCacheload(GraphIndex<float[]> graph, int distance) abstract long
-
Constructor Details
-
GraphCache
public GraphCache()
-
-
Method Details
-
getNode
return the cached node if present, or null if not -
load
- Throws:
IOException
-
ramBytesUsed
public abstract long ramBytesUsed()- Specified by:
ramBytesUsedin interfaceAccountable
-