Class EagerReadCache
java.lang.Object
org.eclipse.rdf4j.sail.extensiblestore.EagerReadCache
- All Implemented Interfaces:
DataStructureInterface
A read cache that keeps a hot copy of the underlying data structure
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStatement
(ExtensibleStatement statement) void
void
void
void
long
CloseableIteration
<? extends ExtensibleStatement, SailException> getStatements
(Resource subject, IRI predicate, Value object, boolean inferred, Resource... context) void
init()
void
removeStatement
(ExtensibleStatement statement) boolean
removeStatementsByQuery
(Resource subj, IRI pred, Value obj, boolean inferred, Resource[] contexts) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.sail.extensiblestore.DataStructureInterface
addStatement, removeStatement
-
Constructor Details
-
EagerReadCache
-
-
Method Details
-
addStatement
- Specified by:
addStatement
in interfaceDataStructureInterface
-
removeStatement
- Specified by:
removeStatement
in interfaceDataStructureInterface
-
getStatements
public CloseableIteration<? extends ExtensibleStatement,SailException> getStatements(Resource subject, IRI predicate, Value object, boolean inferred, Resource... context) - Specified by:
getStatements
in interfaceDataStructureInterface
-
flushForReading
public void flushForReading()- Specified by:
flushForReading
in interfaceDataStructureInterface
-
init
public void init()- Specified by:
init
in interfaceDataStructureInterface
-
clear
- Specified by:
clear
in interfaceDataStructureInterface
-
flushForCommit
public void flushForCommit()- Specified by:
flushForCommit
in interfaceDataStructureInterface
-
removeStatementsByQuery
public boolean removeStatementsByQuery(Resource subj, IRI pred, Value obj, boolean inferred, Resource[] contexts) - Specified by:
removeStatementsByQuery
in interfaceDataStructureInterface
-
clearCache
public void clearCache() -
getEstimatedSize
public long getEstimatedSize()- Specified by:
getEstimatedSize
in interfaceDataStructureInterface
-