atlas-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject [1/3] incubator-atlas git commit: ATLAS-1630: basic search performance improvement (#3)
Date Fri, 17 Mar 2017 07:34:22 GMT
Repository: incubator-atlas
Updated Branches:
  refs/heads/master de7ae290a -> 0c9790289


ATLAS-1630: basic search performance improvement (#3)


Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/0c979028
Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/0c979028
Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/0c979028

Branch: refs/heads/master
Commit: 0c9790289cf707a35b09c92edcd1484de8523c82
Parents: 7154e12
Author: Madhan Neethiraj <madhan@apache.org>
Authored: Fri Mar 10 16:43:42 2017 -0800
Committer: Madhan Neethiraj <madhan@apache.org>
Committed: Fri Mar 17 00:13:26 2017 -0700

----------------------------------------------------------------------
 .../apache/atlas/discovery/EntityDiscoveryService.java  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/0c979028/repository/src/main/java/org/apache/atlas/discovery/EntityDiscoveryService.java
----------------------------------------------------------------------
diff --git a/repository/src/main/java/org/apache/atlas/discovery/EntityDiscoveryService.java
b/repository/src/main/java/org/apache/atlas/discovery/EntityDiscoveryService.java
index 881c5a3..1cf4434 100644
--- a/repository/src/main/java/org/apache/atlas/discovery/EntityDiscoveryService.java
+++ b/repository/src/main/java/org/apache/atlas/discovery/EntityDiscoveryService.java
@@ -247,18 +247,18 @@ public class EntityDiscoveryService implements AtlasDiscoveryService
{
             final Map<String, Object> bindings   = new HashMap<>();
             String                    basicQuery = "g.V()";
 
-            if (typeNames != null) {
-                bindings.put("typeNames", typeNames);
-
-                basicQuery += gremlinQueryProvider.getQuery(AtlasGremlinQuery.BASIC_SEARCH_TYPE_FILTER);
-            }
-
             if (classificationNames != null) {
                 bindings.put("traitNames", classificationNames);
 
                 basicQuery += gremlinQueryProvider.getQuery(AtlasGremlinQuery.BASIC_SEARCH_CLASSIFICATION_FILTER);
             }
 
+            if (typeNames != null) {
+                bindings.put("typeNames", typeNames);
+
+                basicQuery += gremlinQueryProvider.getQuery(AtlasGremlinQuery.BASIC_SEARCH_TYPE_FILTER);
+            }
+
             bindings.put("startIdx", params.offset());
             bindings.put("endIdx", params.offset() + params.limit());
 


Mime
View raw message