Package com.complexible.stardog
Class CommitResult
- java.lang.Object
-
- com.complexible.stardog.CommitResult
-
public class CommitResult extends java.lang.ObjectRepresents 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 Modifier and Type Field Description static CommitResultEMPTY
-
Constructor Summary
Constructors Constructor Description CommitResult(long theAdded, long theRemoved)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)longgetAdded()Returns the number of triples added in the transactionlonggetRemoved()Returns the number of triples removed in the transactioninthashCode()static CommitResultmerge(CommitResult theFirst, CommitResult theSecond)java.lang.StringtoString()
-
-
-
Field Detail
-
EMPTY
public static final CommitResult EMPTY
-
-
Method Detail
-
merge
public static CommitResult merge(CommitResult theFirst, CommitResult theSecond)
-
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
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-