|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.model.impl.LiteralFactoryImpl
org.openrdf.model.impl.ValueFactoryImpl
org.openrdf.sail.memory.model.MemValueFactory
public class MemValueFactory
A factory for MemValue objects that keeps track of created objects to prevent the creation of duplicate objects, minimizing memory usage as a result.
| Constructor Summary | |
|---|---|
MemValueFactory(MemBNodeFactory bf,
MemURIFactory uf,
MemLiteralFactory lf)
|
|
| Method Summary | |
|---|---|
MemBNode |
createMemBNode(BNode bnode)
See createMemValue() for description. |
MemLiteral |
createMemLiteral(Literal literal)
See createMemValue() for description. |
MemResource |
createMemResource(Resource resource)
See createMemValue() for description. |
MemURI |
createMemURI(URI uri)
See createMemValue() for description. |
MemValue |
createMemValue(Value value)
Creates a MemValue for the supplied Value. |
MemBNodeFactory |
getBNodeFactory()
|
MemLiteralFactory |
getLiteralFactory()
|
MemBNode |
getMemBNode(BNode bnode)
See getMemValue() for description. |
Set<MemBNode> |
getMemBNodes()
Gets all bnodes that are managed by this value factory. |
MemLiteral |
getMemLiteral(Literal literal)
See getMemValue() for description. |
Set<MemLiteral> |
getMemLiterals()
Gets all literals that are managed by this value factory. |
MemResource |
getMemResource(Resource resource)
See getMemValue() for description. |
MemURI |
getMemURI(URI uri)
See getMemValue() for description. |
Set<MemURI> |
getMemURIs()
Gets all URIs that are managed by this value factory. |
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. |
MemURIFactory |
getURIFactory()
|
| Methods inherited from class org.openrdf.model.impl.ValueFactoryImpl |
|---|
createBNode, createBNode, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createLiteral, createStatement, createStatement, createURI, createURI, getInstance |
| Methods inherited from class org.openrdf.model.impl.LiteralFactoryImpl |
|---|
createFPLiteral, createIntegerLiteral, createLiteral, createLiteral, createLiteral, createNumericLiteral |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openrdf.model.LiteralFactory |
|---|
createLiteral, createLiteral, createLiteral |
| Constructor Detail |
|---|
public MemValueFactory(MemBNodeFactory bf,
MemURIFactory uf,
MemLiteralFactory lf)
| Method Detail |
|---|
public MemBNodeFactory getBNodeFactory()
getBNodeFactory in class ValueFactoryImplpublic MemLiteralFactory getLiteralFactory()
getLiteralFactory in class ValueFactoryImplpublic MemURIFactory getURIFactory()
getURIFactory in class ValueFactoryImplpublic MemValue getMemValue(Value value)
value - The MemValue equivalent of the supplied value, or null.
public MemResource getMemResource(Resource resource)
public MemURI getMemURI(URI uri)
public MemBNode getMemBNode(BNode bnode)
public MemLiteral getMemLiteral(Literal literal)
public Set<MemURI> getMemURIs()
Warning: This method is not synchronized. To iterate over the returned set in a thread-safe way, this method should only be called while synchronizing on this object.
public Set<MemBNode> getMemBNodes()
Warning: This method is not synchronized. To iterate over the returned set in a thread-safe way, this method should only be called while synchronizing on this object.
public Set<MemLiteral> getMemLiterals()
Warning: This method is not synchronized. To iterate over the returned set in a thread-safe way, this method should only be called while synchronizing on this object.
public MemValue createMemValue(Value value)
value - A Resource or Literal.
public MemResource createMemResource(Resource resource)
public MemURI createMemURI(URI uri)
public MemBNode createMemBNode(BNode bnode)
public MemLiteral createMemLiteral(Literal literal)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||