jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [10/13] jena git commit: switch to Iter.map instead of Map1Iterator
Date Tue, 02 Jun 2015 12:56:32 GMT
switch to Iter.map instead of Map1Iterator


Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/9c27f231
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/9c27f231
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/9c27f231

Branch: refs/heads/master
Commit: 9c27f23102e2615a9775bd4079716930200f1f33
Parents: b9bdf53
Author: Osma Suominen <osma.suominen@aalto.fi>
Authored: Tue Jun 2 10:00:47 2015 +0300
Committer: Osma Suominen <osma.suominen@aalto.fi>
Committed: Tue Jun 2 10:00:47 2015 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/jena/query/text/TextQueryPF.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/9c27f231/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java
----------------------------------------------------------------------
diff --git a/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java b/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java
index 8aa2547..0032be8 100644
--- a/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java
+++ b/jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java
@@ -41,7 +41,6 @@ import org.apache.jena.sparql.pfunction.PropertyFunctionBase ;
 import org.apache.jena.sparql.util.Context ;
 import org.apache.jena.sparql.util.IterLib ;
 import org.apache.jena.sparql.util.NodeFactoryExtra ;
-import org.apache.jena.util.iterator.Map1Iterator ;
 import org.apache.lucene.queryparser.classic.QueryParserBase ;
 import org.slf4j.Logger ;
 import org.slf4j.LoggerFactory ;
@@ -186,7 +185,7 @@ public class TextQueryPF extends PropertyFunctionBase {
         Var scoreVar = (score==null) ? null : Var.alloc(score) ;
         List<TextHit> r = query(match.getQueryString(), match.getLimit(), execCxt)
;
         Function<TextHit,Binding> converter = new TextHitConverter(binding, sVar, scoreVar);
-        Iterator<Binding> bIter = new Map1Iterator<TextHit, Binding>(converter,
r.iterator());
+        Iterator<Binding> bIter = Iter.map(r.iterator(), converter);
         QueryIterator qIter = new QueryIterPlainWrapper(bIter, execCxt);
         return qIter ;
     }


Mime
View raw message