Examples of preQueryActivities()


Examples of com.ikanow.infinit.e.api.knowledge.federated.SimpleFederatedQueryEngine.preQueryActivities()

      qtEntVal.entityValue = "test1_3b";
      qtEntVal.entityType = "TestEntityIn";
      query.qt.add(qtEntVal);
      query.qt.add(qtDate);
      query.logic = "NOT (1 AND 2)";
      queryEngine.preQueryActivities(new ObjectId(), query, communityIdStrs);
      queryEngine.test_CheckIfQueryLaunched("1.3b", false);
      queryEngine.test_queryClear(true);
     
      // 1.4] Query ignored because multiple entities
      query.qt = new ArrayList<AdvancedQueryPojo.QueryTermPojo>(2);
View Full Code Here

Examples of com.ikanow.infinit.e.api.knowledge.federated.SimpleFederatedQueryEngine.preQueryActivities()

      qtEntIndex = new AdvancedQueryPojo.QueryTermPojo();
      qtEntIndex.entity = "test1_4_1/testentityin";
      query.qt.add(qtEntVal);
      query.qt.add(qtEntIndex);
      query.logic = null;
      queryEngine.preQueryActivities(new ObjectId(), query, communityIdStrs);
      queryEngine.test_CheckIfQueryLaunched("1.4a", false);
      queryEngine.test_queryClear(true);
     
      // 1.5] Single entity - not ignored (entity type and value)   
      query.qt = new ArrayList<AdvancedQueryPojo.QueryTermPojo>(1);
View Full Code Here

Examples of com.ikanow.infinit.e.api.knowledge.federated.SimpleFederatedQueryEngine.preQueryActivities()

      qtEntVal = new AdvancedQueryPojo.QueryTermPojo();
      qtEntVal.entityValue = "test1_5a";
      qtEntVal.entityType = "TestEntityIn";
      query.qt.add(qtEntVal);
      query.logic = null;
      queryEngine.preQueryActivities(new ObjectId(), query, communityIdStrs);
      queryEngine.test_CheckIfQueryLaunched("1.5a", true);
      queryEngine.test_queryClear(true);
     
      // 1.6] Single entity and date - not ignored (entity index)
      // 1.6a) single date
View Full Code Here

Examples of com.ikanow.infinit.e.api.knowledge.federated.SimpleFederatedQueryEngine.preQueryActivities()

      qtEntIndex = new AdvancedQueryPojo.QueryTermPojo();
      qtEntIndex.entity= "test1_6a/testentityin";
      query.qt.add(qtDate);
      query.qt.add(qtEntIndex);
      query.logic = "1 AND 2";
      queryEngine.preQueryActivities(new ObjectId(), query, communityIdStrs);
      queryEngine.test_CheckIfQueryLaunched("1.6a", true);
      queryEngine.test_queryClear(true);
      // 1.6b) multiple dates
      query.qt = new ArrayList<AdvancedQueryPojo.QueryTermPojo>(3);
      qtEntIndex = new AdvancedQueryPojo.QueryTermPojo();
View Full Code Here

Examples of com.ikanow.infinit.e.api.knowledge.federated.SimpleFederatedQueryEngine.preQueryActivities()

      qtEntIndex.entity= "test1_6b/testentityin";
      query.qt.add(qtDate);
      query.qt.add(qtEntIndex);
      query.qt.add(qtDate);
      query.logic = "1 AND 2 AND 3";
      queryEngine.preQueryActivities(new ObjectId(), query, communityIdStrs);
      queryEngine.test_CheckIfQueryLaunched("1.6b", true);
      queryEngine.test_queryClear(true);
      // 1.6c) different orders
      query.qt = new ArrayList<AdvancedQueryPojo.QueryTermPojo>(2);
      qtEntVal = new AdvancedQueryPojo.QueryTermPojo();
View Full Code Here

Examples of com.ikanow.infinit.e.api.knowledge.federated.SimpleFederatedQueryEngine.preQueryActivities()

        for (ObjectId commId: source.getCommunityIds()) {
          communityIdStrs[i] = commId.toString();
          i++;
        }
        testFederatedQuery.setTestMode(true);
        testFederatedQuery.preQueryActivities(queryId, testQuery, communityIdStrs);
        StatisticsPojo stats = new StatisticsPojo();
        stats.setSavedScores(0, 0);
        rp.setStats(stats);
        ArrayList<BasicDBObject> toAddTemp = new ArrayList<BasicDBObject>(1);
        testFederatedQuery.postQueryActivities(queryId, toAddTemp, rp);
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.interfaces.query.IQueryExtension.preQueryActivities()

      queryId = new ObjectId();
      queryExtensions = new ArrayList<IQueryExtension>(_queryExtensions.size());
      for (Class<IQueryExtension> queryExtensionClass: _queryExtensions) {
        // Don't catch any exceptions thrown here - let it bubble upwards
        IQueryExtension queryExtension = queryExtensionClass.newInstance();
        queryExtension.preQueryActivities(queryId, query, communityIdStrs);
        queryExtensions.add(queryExtension);
      }
    }//TESTED (see test.QueryExtensionsTestCode)
   
    // Built-in federated query engine ...
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.