Package org.neo4j.gds.core.loading
Class HighLimitIdMap
- java.lang.Object
-
- org.neo4j.gds.api.IdMapAdapter
-
- org.neo4j.gds.core.loading.HighLimitIdMap
-
- All Implemented Interfaces:
BatchNodeIterable
,IdMap
,NodeIterator
,PartialIdMap
public class HighLimitIdMap extends IdMapAdapter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.neo4j.gds.api.BatchNodeIterable
BatchNodeIterable.BitSetIdIterator, BatchNodeIterable.IdIterable, BatchNodeIterable.IdIterator
-
Nested classes/interfaces inherited from interface org.neo4j.gds.api.IdMap
IdMap.NodeLabelConsumer
-
-
Field Summary
-
Fields inherited from interface org.neo4j.gds.api.IdMap
NO_TYPE, NOT_FOUND, START_NODE_ID
-
-
Constructor Summary
Constructors Constructor Description HighLimitIdMap(ShardedLongLongMap intermediateIdMap, IdMap internalIdMap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsOriginalId(long originalNodeId)
Returns true iff the Neo4j id is mapped, otherwise false.long
highestOriginalId()
The highest id that is mapped in this id mapping.static java.util.Optional<java.lang.String>
innerTypeId(java.lang.String typeId)
static boolean
isHighLimitIdMap(java.lang.String typeId)
long
toMappedNodeId(long originalNodeId)
Maps an original node id to a mapped node id.long
toOriginalNodeId(long mappedNodeId)
Returns the original node id for the given mapped node id.java.lang.String
typeId()
A unique identifier for this type of IdMap.java.util.Optional<FilteredIdMap>
withFilteredLabels(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels, int concurrency)
-
Methods inherited from class org.neo4j.gds.api.IdMapAdapter
addNodeIdToLabel, addNodeLabel, availableNodeLabels, batchIterables, forEachNode, forEachNodeLabel, hasLabel, nodeCount, nodeCount, nodeIterator, nodeIterator, nodeLabels, rootIdMap, rootNodeCount, toRootNodeId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.neo4j.gds.api.IdMap
safeToMappedNodeId
-
-
-
-
Constructor Detail
-
HighLimitIdMap
public HighLimitIdMap(ShardedLongLongMap intermediateIdMap, IdMap internalIdMap)
-
-
Method Detail
-
typeId
public java.lang.String typeId()
Description copied from interface:IdMap
A unique identifier for this type of IdMap.- Specified by:
typeId
in interfaceIdMap
- Overrides:
typeId
in classIdMapAdapter
-
toOriginalNodeId
public long toOriginalNodeId(long mappedNodeId)
Description copied from interface:IdMap
Returns the original node id for the given mapped node id. The original node id is typically the Neo4j node id. This method is guaranteed to always return the Neo4j id, regardless of the given mapped node id refers to a filtered node id space or a regular / unfiltered node id space.- Specified by:
toOriginalNodeId
in interfaceIdMap
- Overrides:
toOriginalNodeId
in classIdMapAdapter
-
toMappedNodeId
public long toMappedNodeId(long originalNodeId)
Description copied from interface:PartialIdMap
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.- Specified by:
toMappedNodeId
in interfacePartialIdMap
- Overrides:
toMappedNodeId
in classIdMapAdapter
- Parameters:
originalNodeId
- must be smaller or equal to the id returned byIdMap.highestOriginalId()
-
containsOriginalId
public boolean containsOriginalId(long originalNodeId)
Description copied from interface:IdMap
Returns true iff the Neo4j id is mapped, otherwise false.- Specified by:
containsOriginalId
in interfaceIdMap
- Overrides:
containsOriginalId
in classIdMapAdapter
-
highestOriginalId
public long highestOriginalId()
Description copied from interface:IdMap
The highest id that is mapped in this id mapping.The value is the upper bound of the original node id space.
- Specified by:
highestOriginalId
in interfaceIdMap
- Overrides:
highestOriginalId
in classIdMapAdapter
-
withFilteredLabels
public java.util.Optional<FilteredIdMap> withFilteredLabels(java.util.Collection<org.neo4j.gds.NodeLabel> nodeLabels, int concurrency)
- Specified by:
withFilteredLabels
in interfaceIdMap
- Overrides:
withFilteredLabels
in classIdMapAdapter
-
isHighLimitIdMap
public static boolean isHighLimitIdMap(java.lang.String typeId)
-
innerTypeId
public static java.util.Optional<java.lang.String> innerTypeId(java.lang.String typeId)
-
-