Package org.neo4j.gds.api
Interface PartialIdMap
-
- All Known Subinterfaces:
CSRGraph
,FilteredIdMap
,Graph
,IdMap
- All Known Implementing Classes:
ArrayIdMap
,CSRGraphAdapter
,FilteredLabeledIdMap
,GraphAdapter
,HighLimitIdMap
,HugeGraph
,IdMapAdapter
,LabeledIdMap
,LazyIdMapBuilder
,NodeFilteredGraph
,UnionGraph
public interface PartialIdMap
This interface exposes the relevant parts ofIdMap
used 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.OptionalLong
rootNodeCount()
Number of mapped node ids in the root mapping.long
toMappedNodeId(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.highestOriginalId()
-
rootNodeCount
java.util.OptionalLong rootNodeCount()
Number of mapped node ids in the root mapping. This is necessary for nested (filtered) id mappings.
-
-