Package org.apache.solr.common

Examples of org.apache.solr.common.SolrInputDocument.addField()


  @Override
  public void expire(BoltStatKey key, AccessStatVal val) {
    Date d=new Date(60000+(Long) key.list[0]);
     SolrInputDocument doc=new SolrInputDocument();
      doc.addField("thedate", formatDay.format(d));
      doc.addField("mdrillPartion", formatPartion.format(d));
      doc.addField("mdrillCmd", "add");
      doc.addField("higo_uuid", 0);
      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("hour", formatHourStr.format(d));
View Full Code Here


  public void expire(BoltStatKey key, AccessStatVal val) {
    Date d=new Date(60000+(Long) key.list[0]);
     SolrInputDocument doc=new SolrInputDocument();
      doc.addField("thedate", formatDay.format(d));
      doc.addField("mdrillPartion", formatPartion.format(d));
      doc.addField("mdrillCmd", "add");
      doc.addField("higo_uuid", 0);
      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("pid", key.list[1]);
View Full Code Here

    Date d=new Date(60000+(Long) key.list[0]);
     SolrInputDocument doc=new SolrInputDocument();
      doc.addField("thedate", formatDay.format(d));
      doc.addField("mdrillPartion", formatPartion.format(d));
      doc.addField("mdrillCmd", "add");
      doc.addField("higo_uuid", 0);
      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("pid", key.list[1]);
      doc.addField("namemodle",  key.list[2]);
View Full Code Here

     SolrInputDocument doc=new SolrInputDocument();
      doc.addField("thedate", formatDay.format(d));
      doc.addField("mdrillPartion", formatPartion.format(d));
      doc.addField("mdrillCmd", "add");
      doc.addField("higo_uuid", 0);
      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("pid", key.list[1]);
      doc.addField("namemodle",  key.list[2]);
      doc.addField("rtcnt", val.cnt);
View Full Code Here

      doc.addField("thedate", formatDay.format(d));
      doc.addField("mdrillPartion", formatPartion.format(d));
      doc.addField("mdrillCmd", "add");
      doc.addField("higo_uuid", 0);
      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("pid", key.list[1]);
      doc.addField("namemodle",  key.list[2]);
      doc.addField("rtcnt", val.cnt);
      doc.addField("rtsum", val.sum);
View Full Code Here

      doc.addField("mdrillCmd", "add");
      doc.addField("higo_uuid", 0);
      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("pid", key.list[1]);
      doc.addField("namemodle",  key.list[2]);
      doc.addField("rtcnt", val.cnt);
      doc.addField("rtsum", val.sum);
      if(val.cnt>0)
      {
View Full Code Here

      doc.addField("higo_uuid", 0);
      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("pid", key.list[1]);
      doc.addField("namemodle",  key.list[2]);
      doc.addField("rtcnt", val.cnt);
      doc.addField("rtsum", val.sum);
      if(val.cnt>0)
      {
        doc.addField("rtavg", val.sum/val.cnt);
View Full Code Here

      doc.addField("miniute", formatDay2.format(d)+"T"+formatHour.format(d)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("pid", key.list[1]);
      doc.addField("namemodle",  key.list[2]);
      doc.addField("rtcnt", val.cnt);
      doc.addField("rtsum", val.sum);
      if(val.cnt>0)
      {
        doc.addField("rtavg", val.sum/val.cnt);
      }else{
View Full Code Here

      doc.addField("hour", formatHourStr.format(d));

      doc.addField("pid", key.list[1]);
      doc.addField("namemodle",  key.list[2]);
      doc.addField("rtcnt", val.cnt);
      doc.addField("rtsum", val.sum);
      if(val.cnt>0)
      {
        doc.addField("rtavg", val.sum/val.cnt);
      }else{
        doc.addField("rtavg", 0d);
View Full Code Here

       SolrInputDocument doc1=new SolrInputDocument();
       SolrInputDocument doc2=new SolrInputDocument();
       docs.add(doc1);
       docs.add(doc2);
      
       doc2.addField("mdrillPartion", "201309");
       doc2.addField("mdrillCmd", "add");
       doc2.addField("thedate", "20130901");
      
       doc1.addField("mdrillPartion", "201308");
       doc1.addField("mdrillCmd", "add");
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.