Examples of toNamedList()


Examples of org.apache.solr.common.params.SolrParams.toNamedList()

      // for back compat, we set these now just in case other code
      // are expecting them during handleRequest
      toLog.add("webapp", req.getContext().get("webapp"));
      toLog.add("path", req.getContext().get("path"));
      SolrParams params=req.getParams();
      NamedList<Object> p=params.toNamedList();
      p.remove("mdrill.crc.key.get.crclist");
      toLog.add("params", "{" + p.toString() + "}");
      StringBuilder sb = new StringBuilder(logid);
      for (int i=0; i<toLog.size(); i++) {
        String name = toLog.getName(i);
View Full Code Here

Examples of org.apache.solr.request.compare.GroupbyItem.toNamedList()

       NamedList fieldCounts = new NamedList();
        GroupbyItem[] counts = dff.getPairSorted(limit_offset);
        if(dff.recordcount!=null)
        {
          GroupbyItem recordcount=dff.recordcount;
          fieldCounts.add("count", recordcount.toNamedList());
        }
      ArrayList<Object> list=new ArrayList<Object>();

        int end = limit_offset> counts.length ?counts.length:limit_offset;
        for (int i=offset; i<end; i++) {
View Full Code Here

Examples of org.apache.solr.request.compare.GroupbyItem.toNamedList()

      int saverecords=dff.offset + dff.limit;
      GroupbyItem[] counts = dff.getPairSorted(saverecords);
      if(dff.recordcount!=null)
      {
          GroupbyItem recordcount=dff.recordcount;
        fieldCounts.add("count", recordcount.toNamedList());
      }
 
      int end = dff.limit < 0 ? counts.length : Math.min(dff.offset + dff.limit, counts.length);
    ArrayList<Object> list=new ArrayList<Object>();
View Full Code Here

Examples of org.apache.solr.request.compare.GroupbyItem.toNamedList()

      int end = dff.limit < 0 ? counts.length : Math.min(dff.offset + dff.limit, counts.length);
    ArrayList<Object> list=new ArrayList<Object>();

      for (int i=dff.offset; i<end; i++) {
        GroupbyItem item=counts[i];
        list.add(item.toNamedList());
      }
      fieldCounts.add("list", list);
      rb.rsp.add("mdrill_data", fieldCounts);
    }
View Full Code Here

Examples of org.apache.solr.request.compare.GroupbyRow.toNamedList()

    Map<Long, String> crcvalue = (Map<Long, String>) qr2.get_mdrillData();
    ArrayList<Object> newlist = new ArrayList<Object>();
    for (int i = 0; i < fcsize; i++) {
      GroupbyRow row = new GroupbyRow((ArrayList<Object>) facetCounts.get(i));
      row.setKey(new ColumnKey(crcvalue.get(row.getKey().getCrc())));
      newlist.add(row.toNamedList());
    }

    ff.remove("list");
    ff.add("list", newlist);
  }
View Full Code Here

Examples of org.apache.solr.request.compare.SelectDetailRow.toNamedList()

     
      ArrayList<Object> newlist=new ArrayList<Object>();
      for(int i=0;i<fcsize;i++){
        SelectDetailRow row = new SelectDetailRow((ArrayList<Object>)facetCounts.get(i));
        row.setKey(new ColumnKey(crcvalue.get(row.getKey().getCrc())));
        newlist.add(row.toNamedList());
      }
     
      ff.remove("list");
      ff.add("list",newlist);
  }
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.