Examples of Query()


Examples of de.jetwick.es.ElasticTweetSearch.query()

                cfg.getTwitterSearchCredits().getTokenSecret(), true);
        ElasticTweetSearch fromUserSearch = new ElasticTweetSearch(injector.getInstance(Configuration.class));
        JetwickQuery query = new TweetQuery().addFilterQuery(ElasticTweetSearch.UPDATE_DT, "[* TO *]");
        // TODO set facetlimit to 2000
        query.addFacetField("user").setSize(0);
        SearchResponse rsp = fromUserSearch.query(query);

        TermsFacet tf = (TermsFacet) rsp.getFacets().facet("user");
        logger.info("found: " + tf.entries().size() + " users with the specified criteria");
        int SLEEP = 30;
        int counter = 0;
View Full Code Here

Examples of dovetaildb.api.ApiService.query()

      case execute:
        returnVal = repo.executeCode(api, req.getDb(), req.getCode());
        break;
      case query:
        Object query = req.getQuery();
        returnVal = api.query(req.getBagName(), query, req.getOptionsAsMap());
        break;
      case put:
        Object entry = req.getEntry();
        api.put(req.getBagName(), (Map<String,Object>)entry);
        break;
View Full Code Here

Examples of dovetaildb.apiservice.ApiService.query()

      codeFiles.set(0, new Pair<String, String>("<execute code>", code));
      Map<String,Object> env = Util.literalMap().p("dovetaildb", api);
      returnVal = (new UniversalScriptBridge()).evaluateExpression(req.scriptLanguage+":"+codeFiles, env);
    } else if (req.action == "query") {
      String query = req.request.getParameter("query");
      returnVal = api.query(req.bagName, (List)Util.jsonDecode(query), null);
    } else if (req.action == "insert") {
      Map<String,Object> entry = (Map<String,Object>)Util.jsonDecode(req.request.getParameter("entry"));
      if (req.id != null) {
        entry.put("id", req.id);
      }
View Full Code Here

Examples of dovetaildb.dbservice.BagIndexBridge.query()

    long revNum = puts.commitNewRev(buffer);
    BagIndexBridge bridge = new BagIndexBridge();
    bridge.setTxnMapper(new ProcessTransactionMapper());
    bridge.setBagEntry("",new BagEntry(puts, null, revNum));
    bridge.getTxnMapper().addRevsForTxn(0, Util.literalMap().p("",revNum));
    return bridge.query("", 0, query, options);
  }

  public void put(String id, Map entry) {
    if (deletions.contains(id)) {
      deletions.remove(id);
View Full Code Here

Examples of easyJ.business.proxy.CompositeDataProxy.query()

        Long userId = userCache.getUser().getUserId();

        // 这个方法输出问题的价值界面
        StringBuffer buffer = new StringBuffer();
        CompositeDataProxy cdp = CompositeDataProxy.getInstance();
        ArrayList problemreasons = cdp.query(problemreason);
        // 用problemvalue或者ambiguity那样用session求也可以
        // 标题
        buffer
                .append("<div class=\"t1\"><div class=\"ico\"><div class=\"icomment\"></div></div>");
        buffer.append("针对问题的价值现有<span style=\"color:#FF0000\">"
View Full Code Here

Examples of easyJ.business.proxy.DataProxy.query()

        DataProxy dp = SingleDataProxy.getInstance();
        sysClass = (SystemClass)dp.get(sysClass);
        String className = sysClass.getClassName();
        Property property  = new Property();
        property.setClassName(className);
        ArrayList properties = dp.query(property);
        StringBuffer buffer = new StringBuffer();
        for (Object obj : properties) {
            Property userProperty = (Property)obj;
            String propertyName = userProperty.getPropertyName();
            String propertyChiName = userProperty.getPropertyChiName();
View Full Code Here

Examples of easyJ.business.proxy.SingleDataProxy.query()

        String solution = "";
        if (problemreasons.size() > 0) {
            for (int i = 0; i < problemreasons.size(); i++) {
                pr = (Problemreason) problemreasons.get(i);
                prs.setProblemreasonId(pr.getProblemreasonId());
                ArrayList prss = sdp.query(prs);
                if (prss.size() > 0) {
                    for (int j = 0; j < prss.size(); j++) {
                        prs2 = (ProblemreasonSolution) prss.get(j);
                        solution = solution + ","
                                + prs2.getProblemreasonSolutionId();
View Full Code Here

Examples of easyJ.database.session.Session.query()

        Session session = null;
        try {
            session = SessionFactory.openSession();
            session.setAccurateProperties(accurateProperties);
            // change the o's use_state
            return session.query(o);
        } finally {
            if (session != null)
                session.close();
        }
View Full Code Here

Examples of edu.buffalo.cse.ir.wikiindexer.indexer.LocalDictionary.query()

      for (String term : myterms) {
        dict.lookup(term);
      }
     
      //exact match
      assertArrayEquals(new Object[] {"test"}, getSortedArray(dict.query("test")));
     
      //no match for a given exact match
      assertNull(dict.query("doom"));
     
      //wildcard at start
View Full Code Here

Examples of edu.buffalo.cse.ir.wikiindexer.tokenizer.TokenStream.query()

   */
  @Test
  public void testQuery() {
    //null string based stream
    TokenStream stream = new TokenStream((String)null);
    assertEquals(0, stream.query("test"));
    stream = null;
   
    //empty string
    stream = new TokenStream("");
    assertEquals(0, stream.query("test"));
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.