Aklakan commented on code in PR #3517:
URL: https://github.com/apache/jena/pull/3517#discussion_r2439569470
##########
jena-arq/src/main/java/org/apache/jena/sparql/engine/join/AbstractIterHashJoin.java:
##########
@@ -234,13 +234,11 @@ protected void closeSubIterator() {
if ( JoinLib.JOIN_EXPLAIN ) {
String x = String.format(
"HashJoin: LHS=%d RHS=%d Results=%d Table=%s",
- s_countProbe, s_countScan, s_countResults,
- hashTable.toString()) ;
+ s_countProbe, s_countScan, s_countResults, hashTable)
;
System.out.println(x) ;
}
// In case it's a peek iterator.
iterStream.close() ;
- hashTable.clear();
Review Comment:
The hashTable does not manage any resources - so there is no need to do the
work to clear it. It can just be gc'd.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]