java.lang.Object
org.apache.jena.sparql.resultset.ResultSetCompare
Deprecated, for removal: This API element is subject to removal in a future version.
Comparison of ResultSets.
Note that reading ResultSets is destructive so consider using
ResultSetRewindable
from ResultSetFactory.makeRewindable(org.apache.jena.rdf.model.Model)
.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
equalsByTerm
(ResultSet rs1, ResultSet rs2) Deprecated, for removal: This API element is subject to removal in a future version.Compare two result sets for equivalence.static boolean
equalsByTerm
(RowSet rs1, RowSet rs2) Deprecated, for removal: This API element is subject to removal in a future version.Compare two result sets for equivalence.static boolean
equalsByTermAndOrder
(ResultSet rs1, ResultSet rs2) Deprecated, for removal: This API element is subject to removal in a future version.compare two result sets for equivalence.static boolean
equalsByTermAndOrder
(RowSet rs1, RowSet rs2) Deprecated, for removal: This API element is subject to removal in a future version.static boolean
equalsByValue
(ResultSet rs1, ResultSet rs2) Deprecated, for removal: This API element is subject to removal in a future version.Compare two result sets for equivalence.static boolean
equalsByValue
(RowSet rs1, RowSet rs2) Deprecated, for removal: This API element is subject to removal in a future version.static boolean
equalsByValueAndOrder
(ResultSet rs1, ResultSet rs2) Deprecated, for removal: This API element is subject to removal in a future version.Compare two result sets for equivalence.static boolean
equalsByValueAndOrder
(RowSet rs1, RowSet rs2) Deprecated, for removal: This API element is subject to removal in a future version.static boolean
equalsExact
(ResultSet rs1, ResultSet rs2) Deprecated, for removal: This API element is subject to removal in a future version.Compare two result sets for exact equality equivalence and order.static boolean
equalsExact
(RowSet rs1, RowSet rs2) Deprecated, for removal: This API element is subject to removal in a future version.Compare two result sets for exact equality equivalence and order.static boolean
isomorphic
(ResultSet rs1, ResultSet rs2) Deprecated, for removal: This API element is subject to removal in a future version.static boolean
isomorphic
(RowSet rs1, RowSet rs2) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
ResultSetCompare
public ResultSetCompare()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
equalsByValue
Deprecated, for removal: This API element is subject to removal in a future version.Compare two result sets for equivalence. Equivalence means: A row rs1 has one matching row in rs2, and vice versa. A row is only matched once. Rows match if they have the same variables with the same values. bNodes must map to a consistent other bNodes. Value comparisons of nodes. Destructive - rs1 and rs2 are both read, possibly to exhaustion.- Parameters:
rs1
-rs2
-- Returns:
- true if they are equivalent
-
equalsByValue
Deprecated, for removal: This API element is subject to removal in a future version. -
equalsByTerm
Deprecated, for removal: This API element is subject to removal in a future version.Compare two result sets for equivalence. Equivalence means: A row rs1 has one matching row in rs2, and vice versa. A row is only matched once. Rows match if they have the same variables with the same values, bNodes must map to a consistent other bNodes. Term comparisons of nodes. Destructive - rs1 and rs2 are both read, possibly to exhaustion.- Parameters:
rs1
-rs2
-- Returns:
- true if they are equivalent
-
equalsByTerm
Deprecated, for removal: This API element is subject to removal in a future version.Compare two result sets for equivalence. Equivalence means: A row rs1 has one matching row in rs2, and vice versa. A row is only matched once. Rows match if they have the same variables with the same values, bNodes must map to a consistent other bNodes. Term comparisons of nodes. Destructive - rs1 and rs2 are both read, possibly to exhaustion.- Parameters:
rs1
-rs2
-- Returns:
- true if they are equivalent
-
equalsByValueAndOrder
Deprecated, for removal: This API element is subject to removal in a future version.Compare two result sets for equivalence. Equivalence means: Each row in rs1 matches the same index row in rs2. Rows match if they have the same variables with the same values, bNodes must map to a consistent other bNodes. Value comparisons of nodes.- Parameters:
rs1
-rs2
-- Returns:
- true if they are equivalent
-
equalsByValueAndOrder
Deprecated, for removal: This API element is subject to removal in a future version. -
equalsByTermAndOrder
Deprecated, for removal: This API element is subject to removal in a future version.compare two result sets for equivalence. Equivalence means: Each row in rs1 matches the same index row in rs2. Rows match if they have the same variables with the same values, bNodes must map to a consistent other bNodes. RDF term comparisons of nodes.- Parameters:
rs1
-rs2
-- Returns:
- true if they are equivalent
-
equalsByTermAndOrder
Deprecated, for removal: This API element is subject to removal in a future version. -
equalsExact
Deprecated, for removal: This API element is subject to removal in a future version.Compare two result sets for exact equality equivalence and order. Blank nodes must have same labels.- Parameters:
rs1
-rs2
-- Returns:
- true if they are equivalent
-
equalsExact
Deprecated, for removal: This API element is subject to removal in a future version.Compare two result sets for exact equality equivalence and order. Blank nodes must have same labels.- Parameters:
rs1
-rs2
-- Returns:
- true if they are equivalent
-
isomorphic
Deprecated, for removal: This API element is subject to removal in a future version. -
isomorphic
Deprecated, for removal: This API element is subject to removal in a future version.Compare two row sets for blank node isomorphism equivalence. Only does RDF term comparison. This method does not handle triple terms in results.
-
ResultsCompare
.