Package org.neo4j.gds.core.loading
Class LazyIdMapBuilder
- java.lang.Object
-
- org.neo4j.gds.core.loading.LazyIdMapBuilder
-
- All Implemented Interfaces:
PartialIdMap
public final class LazyIdMapBuilder extends java.lang.Object implements PartialIdMap
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LazyIdMapBuilder.HighLimitIdMapAndProperties
-
Constructor Summary
Constructors Constructor Description LazyIdMapBuilder(int concurrency, boolean hasLabelInformation, boolean hasProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
addNode(long nodeId, NodeLabelToken nodeLabels)
long
addNodeWithProperties(long nodeId, PropertyValues properties, NodeLabelToken nodeLabels)
LazyIdMapBuilder.HighLimitIdMapAndProperties
build()
void
prepareForFlush()
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
-
prepareForFlush
public void prepareForFlush()
-
addNode
public long addNode(long nodeId, NodeLabelToken nodeLabels)
-
addNodeWithProperties
public long addNodeWithProperties(long nodeId, PropertyValues properties, NodeLabelToken nodeLabels)
-
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
- Parameters:
originalNodeId
- must be smaller or equal to the id returned byIdMap.highestOriginalId()
-
rootNodeCount
public java.util.OptionalLong rootNodeCount()
Description copied from interface:PartialIdMap
Number of mapped node ids in the root mapping. This is necessary for nested (filtered) id mappings.- Specified by:
rootNodeCount
in interfacePartialIdMap
-
build
public LazyIdMapBuilder.HighLimitIdMapAndProperties build()
-
-