Module org.apache.jena.dboe.storage
Class StoragePrefixesSimpleMem
java.lang.Object
org.apache.jena.dboe.storage.simple.StoragePrefixesSimpleMem
- All Implemented Interfaces:
StoragePrefixes
In-memory dataset prefixes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a prefix, overwrites any existing associationvoidDelete a prefix mappingvoiddeleteAll(org.apache.jena.graph.Node graphNode) Delete prefix mappings for a specific graph name.Iterator<org.apache.jena.riot.system.PrefixEntry>get(org.apache.jena.graph.Node graphNode) booleanisEmpty()Return whether there are any prefix mappings or not (any graph).Iterator<org.apache.jena.graph.Node>intsize()Return the number of mappings.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.dboe.storage.StoragePrefixes
listMappings
-
Constructor Details
-
StoragePrefixesSimpleMem
public StoragePrefixesSimpleMem()
-
-
Method Details
-
get
- Specified by:
getin interfaceStoragePrefixes
-
get
- Specified by:
getin interfaceStoragePrefixes
-
listGraphNodes
- Specified by:
listGraphNodesin interfaceStoragePrefixes
-
add
Add a prefix, overwrites any existing association- Specified by:
addin interfaceStoragePrefixes
-
delete
Delete a prefix mapping- Specified by:
deletein interfaceStoragePrefixes
-
deleteAll
public void deleteAll(org.apache.jena.graph.Node graphNode) Description copied from interface:StoragePrefixesDelete prefix mappings for a specific graph name.- Specified by:
deleteAllin interfaceStoragePrefixes
-
isEmpty
public boolean isEmpty()Description copied from interface:StoragePrefixesReturn whether there are any prefix mappings or not (any graph).- Specified by:
isEmptyin interfaceStoragePrefixes
-
size
public int size()Description copied from interface:StoragePrefixesReturn the number of mappings.- Specified by:
sizein interfaceStoragePrefixes
-