You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by to...@apache.org on 2014/11/17 22:23:38 UTC

incubator-usergrid git commit: Added runtime exceptions to force correction of incorrect use of ES

Repository: incubator-usergrid
Updated Branches:
  refs/heads/seek-v-search [created] e2709b812


Added runtime exceptions to force correction of incorrect use of ES


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

Branch: refs/heads/seek-v-search
Commit: e2709b81222c61f17dc30249213164b690e19dc5
Parents: 66ab376
Author: Todd Nine <tn...@apigee.com>
Authored: Mon Nov 17 14:23:35 2014 -0700
Committer: Todd Nine <tn...@apigee.com>
Committed: Mon Nov 17 14:23:35 2014 -0700

----------------------------------------------------------------------
 .../apache/usergrid/corepersistence/CpRelationManager.java    | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/e2709b81/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpRelationManager.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpRelationManager.java b/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpRelationManager.java
index 8514504..dc7b1cc 100644
--- a/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpRelationManager.java
+++ b/stack/core/src/main/java/org/apache/usergrid/corepersistence/CpRelationManager.java
@@ -569,6 +569,9 @@ public class CpRelationManager implements RelationManager {
             Level resultsLevel,
             boolean reversed ) throws Exception {
 
+
+        throw new RuntimeException( "I shouldn't use a query, I should use a graph!!" );
+
         Query query = Query.fromQL( "select *" );
         query.setLimit( count );
         query.setReversed( reversed );
@@ -1336,8 +1339,12 @@ public class CpRelationManager implements RelationManager {
     public Results getConnectedEntities(
             String connectionType, String connectedEntityType, Level level ) throws Exception {
 
+
+        throw new RuntimeException( "I shouldn't perform a query.  I should use graph" );
+
         Results raw = null;
 
+
         Preconditions.checkNotNull( connectionType, "connectionType cannot be null" );
 
         Query query = new Query();