Class StringIdMapper
java.lang.Object
org.impulsegraph.api.StringIdMapper
-
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(String key) Resolves an external key to a dense 64-bit node ID, assigning a new ID if absent.voidregisterMapping(String key, 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
-
StringIdMapper
-
-
Method Details
-
getDomainType
Description copied from interface:IdMapperObtains the entity/domain name associated with this mapper.- Specified by:
getDomainTypein interfaceIdMapper<String>
-
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<String>
-
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<String>
-
getExternalKey
Description copied from interface:IdMapperResolves a local dense node ID back to its external key.- Specified by:
getExternalKeyin interfaceIdMapper<String>
-
getId
-
size
-
clear
-