Class EvaluationStatisticsWrapper
- java.lang.Object
-
- org.eclipse.rdf4j.sail.extensiblestore.evaluationstatistics.EvaluationStatisticsWrapper
-
- All Implemented Interfaces:
DataStructureInterface
@Experimental public class EvaluationStatisticsWrapper extends Object implements DataStructureInterface
A wrapper around a data structure to support evaluation statistics that need to be notified of added or removed statements.
-
-
Constructor Summary
Constructors Constructor Description EvaluationStatisticsWrapper(DataStructureInterface delegate, DynamicStatistics dynamicStatistics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStatement(Collection<ExtensibleStatement> statements)voidaddStatement(ExtensibleStatement statement)voidclear(boolean inferred, Resource[] contexts)voidflushForCommit()voidflushForReading()longgetEstimatedSize()CloseableIteration<? extends ExtensibleStatement,SailException>getStatements(Resource subject, IRI predicate, Value object, boolean inferred, Resource... context)voidinit()voidremoveStatement(Collection<ExtensibleStatement> statements)voidremoveStatement(ExtensibleStatement statement)booleanremoveStatementsByQuery(Resource subj, IRI pred, Value obj, boolean inferred, Resource[] contexts)voidsetEvaluationStatistics(DynamicStatistics dynamicStatistics)
-
-
-
Constructor Detail
-
EvaluationStatisticsWrapper
public EvaluationStatisticsWrapper(DataStructureInterface delegate, DynamicStatistics dynamicStatistics)
-
-
Method Detail
-
addStatement
public void addStatement(ExtensibleStatement statement)
- Specified by:
addStatementin interfaceDataStructureInterface
-
removeStatement
public void removeStatement(ExtensibleStatement statement)
- Specified by:
removeStatementin interfaceDataStructureInterface
-
getStatements
public CloseableIteration<? extends ExtensibleStatement,SailException> getStatements(Resource subject, IRI predicate, Value object, boolean inferred, Resource... context)
- Specified by:
getStatementsin interfaceDataStructureInterface
-
flushForReading
public void flushForReading()
- Specified by:
flushForReadingin interfaceDataStructureInterface
-
init
public void init()
- Specified by:
initin interfaceDataStructureInterface
-
clear
public void clear(boolean inferred, Resource[] contexts)- Specified by:
clearin interfaceDataStructureInterface
-
flushForCommit
public void flushForCommit()
- Specified by:
flushForCommitin interfaceDataStructureInterface
-
removeStatementsByQuery
public boolean removeStatementsByQuery(Resource subj, IRI pred, Value obj, boolean inferred, Resource[] contexts)
- Specified by:
removeStatementsByQueryin interfaceDataStructureInterface
-
addStatement
public void addStatement(Collection<ExtensibleStatement> statements)
- Specified by:
addStatementin interfaceDataStructureInterface
-
removeStatement
public void removeStatement(Collection<ExtensibleStatement> statements)
- Specified by:
removeStatementin interfaceDataStructureInterface
-
getEstimatedSize
public long getEstimatedSize()
- Specified by:
getEstimatedSizein interfaceDataStructureInterface
-
setEvaluationStatistics
public void setEvaluationStatistics(DynamicStatistics dynamicStatistics)
-
-