Class UuidIdMapper
java.lang.Object
org.impulsegraph.api.UuidIdMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all in-memory mappings.Obtains the entity/domain name associated with this mapper.getExternalKey(long denseId) Resolves a local dense node ID back to its external key.Looks up the dense node ID for a given external key without assigning a new one.longgetOrAssignId(UUID uuid) Resolves an external key to a dense 64-bit node ID, assigning a new ID if absent.voidregisterMapping(UUID uuid, long denseId) Registers a known external key to dense ID mapping (e.g. loaded from binary Section 4 or database).intsize()Returns the total count of mapped IDs.
-
Constructor Details
-
UuidIdMapper
-
-
Method Details
-
getDomainType
Description copied from interface:IdMapperObtains the entity/domain name associated with this mapper.- Specified by:
getDomainTypein interfaceIdMapper<UUID>
-
getOrAssignId
Description copied from interface:IdMapperResolves an external key to a dense 64-bit node ID, assigning a new ID if absent.- Specified by:
getOrAssignIdin interfaceIdMapper<UUID>
-
registerMapping
Description copied from interface:IdMapperRegisters a known external key to dense ID mapping (e.g. loaded from binary Section 4 or database).- Specified by:
registerMappingin interfaceIdMapper<UUID>
-
getExternalKey
Description copied from interface:IdMapperResolves a local dense node ID back to its external key.- Specified by:
getExternalKeyin interfaceIdMapper<UUID>
-
getId
-
size
-
clear
-