Package org.eclipse.rdf4j.sail.shacl
Class Stats
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.Stats
-
@InternalUseOnly public class Stats extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.BooleanemptyBeforeTransactionprivate java.lang.BooleanemptyIncludingCurrentTransactionprivate booleanhasAddedprivate booleanhasRemoved
-
Constructor Summary
Constructors Constructor Description Stats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadded(Statement statement)booleanhasAdded()booleanhasRemoved()booleanisEmptyIncludingCurrentTransaction()voidremoved(Statement statement)(package private) voidsetEmptyBeforeTransaction(boolean emptyBeforeTransaction)(package private) voidsetEmptyIncludingCurrentTransaction(boolean emptyIncludingCurrentTransaction)booleanwasEmptyBeforeTransaction()
-
-
-
Method Detail
-
added
public void added(Statement statement)
-
removed
public void removed(Statement statement)
-
hasAdded
public boolean hasAdded()
- Returns:
- true if statements were effectively added in this transaction
-
hasRemoved
public boolean hasRemoved()
- Returns:
- true if statements were effectively removed in this transaction
-
wasEmptyBeforeTransaction
public boolean wasEmptyBeforeTransaction()
- Returns:
- true if the sail was empty before this transaction started
-
setEmptyBeforeTransaction
void setEmptyBeforeTransaction(boolean emptyBeforeTransaction)
-
isEmptyIncludingCurrentTransaction
public boolean isEmptyIncludingCurrentTransaction()
- Returns:
- true if the entire sail is empty, even with the current transaction
-
setEmptyIncludingCurrentTransaction
void setEmptyIncludingCurrentTransaction(boolean emptyIncludingCurrentTransaction)
-
-