Package com.complexible.stardog
Class CommitResult
java.lang.Object
com.complexible.stardog.CommitResult
Represents the approximate net number of triples added or removed in a transaction.
This number is not necessarily exact since the storage engine does not check at write time whether the passed triples
already exist in the database.
- Since:
- 5.0
- Version:
- 7.0.1
- Author:
- Evren Sirin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetAdded()Returns the number of triples added in the transactionlongReturns the number of triples removed in the transactioninthashCode()static CommitResultmerge(CommitResult theFirst, CommitResult theSecond) toString()
-
Field Details
-
EMPTY
-
-
Constructor Details
-
CommitResult
public CommitResult(long theAdded, long theRemoved)
-
-
Method Details
-
merge
-
getAdded
public long getAdded()Returns the number of triples added in the transaction- Returns:
- the number of triples added in the transaction
-
getRemoved
public long getRemoved()Returns the number of triples removed in the transaction- Returns:
- the number of triples removed in the transaction
-
equals
-
hashCode
public int hashCode() -
toString
-