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
ConstructorDescriptionEvaluationStatisticsWrapper
(DataStructureInterface delegate, DynamicStatistics dynamicStatistics) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStatement
(Collection<ExtensibleStatement> statements) void
addStatement
(ExtensibleStatement statement) void
void
void
long
CloseableIteration
<? extends ExtensibleStatement> getStatements
(StatementOrder statementOrder, Resource subject, IRI predicate, Value object, boolean inferred, Resource... contexts) CloseableIteration
<? extends ExtensibleStatement> getStatements
(Resource subject, IRI predicate, Value object, boolean inferred, Resource... context) getSupportedOrders
(Resource subj, IRI pred, Value obj, boolean inferred, Resource... contexts) void
init()
void
removeStatement
(Collection<ExtensibleStatement> statements) void
removeStatement
(ExtensibleStatement statement) boolean
removeStatementsByQuery
(Resource subj, IRI pred, Value obj, boolean inferred, Resource[] contexts) void
setEvaluationStatistics
(DynamicStatistics dynamicStatistics)
-
Constructor Details
-
EvaluationStatisticsWrapper
public EvaluationStatisticsWrapper(DataStructureInterface delegate, DynamicStatistics dynamicStatistics)
-
-
Method Details
-
addStatement
- Specified by:
addStatement
in interfaceDataStructureInterface
-
removeStatement
- Specified by:
removeStatement
in interfaceDataStructureInterface
-
getStatements
public CloseableIteration<? extends ExtensibleStatement> getStatements(Resource subject, IRI predicate, Value object, boolean inferred, Resource... context) - Specified by:
getStatements
in interfaceDataStructureInterface
-
getStatements
public CloseableIteration<? extends ExtensibleStatement> getStatements(StatementOrder statementOrder, Resource subject, IRI predicate, Value object, boolean inferred, Resource... contexts) - 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
-
addStatement
- Specified by:
addStatement
in interfaceDataStructureInterface
-
removeStatement
- Specified by:
removeStatement
in interfaceDataStructureInterface
-
getEstimatedSize
public long getEstimatedSize()- Specified by:
getEstimatedSize
in interfaceDataStructureInterface
-
getSupportedOrders
public Set<StatementOrder> getSupportedOrders(Resource subj, IRI pred, Value obj, boolean inferred, Resource... contexts) - Specified by:
getSupportedOrders
in interfaceDataStructureInterface
-
getComparator
- Specified by:
getComparator
in interfaceDataStructureInterface
-
setEvaluationStatistics
-