Package org.neo4j.gds.api
Interface PartialIdMap
-
- All Known Subinterfaces:
CSRGraph,FilteredIdMap,Graph,IdMap
- All Known Implementing Classes:
ArrayIdMap,CSRGraphAdapter,GraphAdapter,HugeGraph,IdMapAdapter,LabeledIdMap,NodeFilteredGraph,UnionGraph
public interface PartialIdMapThis interface exposes the relevant parts ofIdMapused for relationship loading. It helps implementations that are only used for relationship loading to avoid implementing unnecessary methods.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.OptionalLongrootNodeCount()Number of mapped node ids in the root mapping.longtoMappedNodeId(long originalNodeId)Maps an original node id to a mapped node id.
-
-
-
Method Detail
-
toMappedNodeId
long toMappedNodeId(long originalNodeId)
Maps an original node id to a mapped node id. In case of nested id maps, the mapped node id is always in the space of the innermost mapping.- Parameters:
originalNodeId- must be smaller or equal to the id returned byIdMap.highestNeoId()
-
rootNodeCount
java.util.OptionalLong rootNodeCount()
Number of mapped node ids in the root mapping. This is necessary for nested (filtered) id mappings.
-
-