Package org.aksw.jenax.arq.util.prefix
Class PrefixMapTrie
java.lang.Object
org.apache.jena.riot.system.PrefixMapBase
org.aksw.jenax.arq.util.prefix.PrefixMapTrie
- All Implemented Interfaces:
org.apache.jena.riot.system.PrefixMap
public class PrefixMapTrie
extends org.apache.jena.riot.system.PrefixMapBase
A
PrefixMap implemented as a pair of in-memory maps.
In addition, internal longest prefix lookups are cached.
Prefixes are stored in a synchronized linked hash map such that their iteration order is predictable.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabbreviate(String iriStr) voidvoidclear()booleancontainsPrefix(String prefix) voidSee notes on reverse mappings inPrefixMappingBase.findMapping(String iri, boolean partial) protected static StringgetPossibleKey(String iriString) booleanisEmpty()intsize()Methods inherited from class org.apache.jena.riot.system.PrefixMapBase
abbrev, expand, expand, forEach, getMappingCopy, putAll, putAll, putAll, stream, strSafeFor, toString
-
Constructor Details
-
PrefixMapTrie
public PrefixMapTrie() -
PrefixMapTrie
public PrefixMapTrie(long longestMatchCacheSize)
-
-
Method Details
-
findMapping
-
add
-
delete
See notes on reverse mappings inPrefixMappingBase. This is a complete implementation.Test
AbstractTestPrefixMapping.testSecondPrefixDeletedUncoversPreviousMap. -
abbrev
- Specified by:
abbrevin interfaceorg.apache.jena.riot.system.PrefixMap- Overrides:
abbrevin classorg.apache.jena.riot.system.PrefixMapBase
-
abbreviate
- Specified by:
abbreviatein interfaceorg.apache.jena.riot.system.PrefixMap- Overrides:
abbreviatein classorg.apache.jena.riot.system.PrefixMapBase
-
get
-
getMapping
-
clear
public void clear() -
isEmpty
public boolean isEmpty() -
size
public int size() -
containsPrefix
-
getPossibleKey
-