private QueryResultImpl eliminateDuplicates ( QueryResultImpl result ) { QueryResultImpl ret = new QueryResultImpl ( result . getQuery ( ) ) ; Set < QueryBindingImpl > distinctSet = new HashSet <> ( result . getBindings ( ) ) ; distinctSet . forEach ( ret :: add ) ; return ret ; }
Eliminate duplicate bindings .