| java.lang.Object org.openrdf.model.impl.ValueFactoryBase org.openrdf.sail.memory.model.MemValueFactory
MemValueFactory | public class MemValueFactory extends ValueFactoryBase (Code) | | A factory for MemValue objects that keeps track of created objects to prevent
the creation of duplicate objects, minimizing memory usage as a result.
author: Arjohn Kampman author: David Huynh |
Method Summary | |
public BNode | createBNode(String nodeID) | protected Literal | createFPLiteral(Number n, URI datatype) | protected Literal | createIntegerLiteral(Number n, URI datatype) | public Literal | createLiteral(String value) | public Literal | createLiteral(String value, String language) | public Literal | createLiteral(String value, URI datatype) | public Literal | createLiteral(boolean value) | public Literal | createLiteral(XMLGregorianCalendar calendar) | public MemBNode | createMemBNode(BNode bnode) See createMemValue() for description. | public MemLiteral | createMemLiteral(Literal literal) See createMemValue() for description. | public MemResource | createMemResource(Resource resource) See createMemValue() for description. | public MemURI | createMemURI(URI uri) See createMemValue() for description. | public MemValue | createMemValue(Value value) Creates a MemValue for the supplied Value. | public Statement | createStatement(Resource subject, URI predicate, Value object) | public Statement | createStatement(Resource subject, URI predicate, Value object, Resource context) | public URI | createURI(String uri) | public URI | createURI(String namespace, String localName) | public MemBNode | getMemBNode(BNode bnode) See getMemValue() for description. | public Set<MemBNode> | getMemBNodes() Gets all bnodes that are managed by this value factory. | public MemLiteral | getMemLiteral(Literal literal) See getMemValue() for description. | public Set<MemLiteral> | getMemLiterals() Gets all literals that are managed by this value factory. | public MemResource | getMemResource(Resource resource) See getMemValue() for description. | public MemURI | getMemURI(URI uri) See getMemValue() for description. | public Set<MemURI> | getMemURIs() Gets all URIs that are managed by this value factory. | public MemValue | getMemValue(Value value) Returns a previously created MemValue that is equal to the supplied value,
or null if the supplied value is a new value or is equal to
null.
Parameters: value - The MemValue equivalent of the supplied value, or null. |
createMemBNode | public MemBNode createMemBNode(BNode bnode)(Code) | | See createMemValue() for description.
|
createMemURI | public MemURI createMemURI(URI uri)(Code) | | See createMemValue() for description.
|
createMemValue | public MemValue createMemValue(Value value)(Code) | | Creates a MemValue for the supplied Value. The supplied value should not
already have an associated MemValue. The created MemValue is returned.
Parameters: value - A Resource or Literal. The created MemValue. |
getMemBNodes | public Set<MemBNode> getMemBNodes()(Code) | | Gets all bnodes that are managed by this value factory.
An unmodifiable Set of MemBNode objects. |
getMemLiterals | public Set<MemLiteral> getMemLiterals()(Code) | | Gets all literals that are managed by this value factory.
An unmodifiable Set of MemURI objects. |
getMemURI | public MemURI getMemURI(URI uri)(Code) | | See getMemValue() for description.
|
getMemURIs | public Set<MemURI> getMemURIs()(Code) | | Gets all URIs that are managed by this value factory.
An unmodifiable Set of MemURI objects. |
getMemValue | public MemValue getMemValue(Value value)(Code) | | Returns a previously created MemValue that is equal to the supplied value,
or null if the supplied value is a new value or is equal to
null.
Parameters: value - The MemValue equivalent of the supplied value, or null. A previously created MemValue that is equal to value,or null if no such value exists or if valueis equal to null. |
|
|