You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@s2graph.apache.org by st...@apache.org on 2018/04/23 04:29:36 UTC
[4/8] incubator-s2graph git commit: remove hard_coded var
remove hard_coded var
Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/f1870404
Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/f1870404
Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/f1870404
Branch: refs/heads/master
Commit: f187040411f8ff967972df7dff2fafeff1d8a993
Parents: ea26552
Author: daewon <da...@apache.org>
Authored: Thu Apr 19 18:59:04 2018 +0900
Committer: daewon <da...@apache.org>
Committed: Thu Apr 19 18:59:04 2018 +0900
----------------------------------------------------------------------
s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/f1870404/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala
----------------------------------------------------------------------
diff --git a/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala b/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala
index 74574ed..4a28f0a 100644
--- a/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala
+++ b/s2core/src/main/scala/org/apache/s2graph/core/S2Graph.scala
@@ -268,7 +268,7 @@ class S2Graph(_config: Config)(implicit val ec: ExecutionContext) extends S2Grap
(queryParam.vertexIds ++ vids).distinct.map(vid => elementBuilder.newVertex(vid))
}
- if (true) matchedVertices.flatMap(vs => getVertices(vs))
+ if (queryParam.fetchProp) matchedVertices.flatMap(vs => getVertices(vs))
else matchedVertices
}