|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.sail.memory.model.MemURI
public class MemURI
A MemoryStore-specific implementation of URI that stores separated namespace and local name information to enable reuse of namespace String objects (reducing memory usage) and that gives it node properties.
| Field Summary |
|---|
| Fields inherited from interface org.openrdf.sail.memory.model.MemValue |
|---|
EMPTY_LIST |
| Constructor Summary | |
|---|---|
MemURI(Object creator,
String namespace,
String localName)
Creates a new MemURI for a URI. |
|
| Method Summary | |
|---|---|
void |
addContextStatement(MemStatement st)
Adds a statement to this MemResource's list of statements for which it represents the context. |
void |
addObjectStatement(MemStatement st)
Adds a statement to this MemValue's list of statements for which it is the object. |
void |
addPredicateStatement(MemStatement st)
Adds a statement to this MemURI's list of statements for which it is the predicate. |
void |
addSubjectStatement(MemStatement st)
Adds a statement to this MemResource's list of statements for which it is the subject. |
void |
cleanSnapshotsFromContextStatements(int currentSnapshot)
Removes statements from old snapshots (those that have expired at or before the specified snapshot version) from this MemValue's list of statements for which it is the context. |
void |
cleanSnapshotsFromObjectStatements(int currentSnapshot)
Removes statements from old snapshots (those that have expired at or before the specified snapshot version) from this MemValue's list of statements for which it is the object. |
void |
cleanSnapshotsFromPredicateStatements(int currentSnapshot)
Removes statements from old snapshots (those that have expired at or before the specified snapshot version) from this MemValue's list of statements for which it is the predicate. |
void |
cleanSnapshotsFromSubjectStatements(int currentSnapshot)
Removes statements from old snapshots (those that have expired at or before the specified snapshot version) from this MemValue's list of statements for which it is the subject. |
boolean |
equals(Object other)
Compares a URI object to another object. |
int |
getContextStatementCount()
Gets the number of statements for which this MemResource represents the context. |
MemStatementList |
getContextStatementList()
Gets the list of statements for which this MemResource represents the context. |
Object |
getCreator()
Returns the object that created this MemValue. |
String |
getLocalName()
Gets the local name of this URI. |
String |
getNamespace()
Gets the namespace of this URI. |
int |
getObjectStatementCount()
Gets the number of statements for which this MemValue is the object. |
MemStatementList |
getObjectStatementList()
Gets the list of statements for which this MemValue is the object. |
int |
getPredicateStatementCount()
Gets the number of Statements for which this MemURI is the predicate. |
MemStatementList |
getPredicateStatementList()
Gets the list of statements for which this MemURI is the predicate. |
int |
getSubjectStatementCount()
Gets the number of statements for which this MemResource is the subject. |
MemStatementList |
getSubjectStatementList()
Gets the list of statements for which this MemResource is the subject. |
int |
hashCode()
The hash code of a URI is defined as the hash code of its String-representation: toString().hashCode. |
void |
removeContextStatement(MemStatement st)
Removes a statement from this MemResource's list of statements for which it represents the context. |
void |
removeObjectStatement(MemStatement st)
Removes a statement from this MemValue's list of statements for which it is the object. |
void |
removePredicateStatement(MemStatement st)
Removes a statement from this MemURI's list of statements for which it is the predicate. |
void |
removeSubjectStatement(MemStatement st)
Removes a statement from this MemResource's list of statements for which it is the subject. |
String |
stringValue()
Returns the String-value of a Value object. |
String |
toString()
Returns the String-representation of this URI. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MemURI(Object creator,
String namespace,
String localName)
creator - The object that is creating this MemURI.namespace - namespace part of URI.localName - localname part of URI.| Method Detail |
|---|
public String toString()
URI
toString in interface URItoString in class Objectpublic String stringValue()
ValueLiteral's label, a URI's URI or a BNode's ID.
stringValue in interface Valuepublic String getNamespace()
URI
getNamespace in interface URIpublic String getLocalName()
URI
getLocalName in interface URIpublic boolean equals(Object other)
URI
equals in interface URIequals in class Objectother - The object to compare this URI to.
URI
and their String-representations are equal, false
otherwise.public int hashCode()
URI
hashCode in interface URIhashCode in class Objectpublic Object getCreator()
MemValue
getCreator in interface MemValuepublic MemStatementList getSubjectStatementList()
MemResource
getSubjectStatementList in interface MemResourcepublic int getSubjectStatementCount()
MemResource
getSubjectStatementCount in interface MemResourcepublic void addSubjectStatement(MemStatement st)
MemResource
addSubjectStatement in interface MemResourcepublic void removeSubjectStatement(MemStatement st)
MemResource
removeSubjectStatement in interface MemResourcepublic void cleanSnapshotsFromSubjectStatements(int currentSnapshot)
MemResource
cleanSnapshotsFromSubjectStatements in interface MemResourcecurrentSnapshot - The current snapshot version.public MemStatementList getPredicateStatementList()
public int getPredicateStatementCount()
public void addPredicateStatement(MemStatement st)
public void removePredicateStatement(MemStatement st)
public void cleanSnapshotsFromPredicateStatements(int currentSnapshot)
currentSnapshot - The current snapshot version.public MemStatementList getObjectStatementList()
MemValue
getObjectStatementList in interface MemValuepublic int getObjectStatementCount()
MemValue
getObjectStatementCount in interface MemValuepublic void addObjectStatement(MemStatement st)
MemValue
addObjectStatement in interface MemValuepublic void removeObjectStatement(MemStatement st)
MemValue
removeObjectStatement in interface MemValuepublic void cleanSnapshotsFromObjectStatements(int currentSnapshot)
MemValue
cleanSnapshotsFromObjectStatements in interface MemValuecurrentSnapshot - The current snapshot version.public MemStatementList getContextStatementList()
MemResource
getContextStatementList in interface MemResourcepublic int getContextStatementCount()
MemResource
getContextStatementCount in interface MemResourcepublic void addContextStatement(MemStatement st)
MemResource
addContextStatement in interface MemResourcepublic void removeContextStatement(MemStatement st)
MemResource
removeContextStatement in interface MemResourcepublic void cleanSnapshotsFromContextStatements(int currentSnapshot)
MemResource
cleanSnapshotsFromContextStatements in interface MemResourcecurrentSnapshot - The current snapshot version.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||