Package org.apache.solr.common

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


  public void expire(BoltStatKey key, BoltStatVal 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("datanum", val.cnt);
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("datanum", 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("datanum", val.cnt);
     
      boolean needCommit=false;
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("datanum", val.cnt);
     
      boolean needCommit=false;

      synchronized (doclistLock) {
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("datanum", val.cnt);
     
      boolean needCommit=false;

      synchronized (doclistLock) {
          doclistBuffer.add(doc);
View Full Code Here

    long ts5=300000+((Long) key.list[0]/300000)*300000;
    Date d=new Date(ts);
    Date d5=new Date(ts5);

     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("miniute5", formatDay2.format(d5)+"T"+formatHour.format(d5)+"Z");
View Full Code Here

    Date d=new Date(ts);
    Date d5=new Date(ts5);

     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("miniute5", formatDay2.format(d5)+"T"+formatHour.format(d5)+"Z");
      doc.addField("hour", formatHourStr.format(d));
View Full Code Here

    Date d5=new Date(ts5);

     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("miniute5", formatDay2.format(d5)+"T"+formatHour.format(d5)+"Z");
      doc.addField("hour", formatHourStr.format(d));
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("miniute5", formatDay2.format(d5)+"T"+formatHour.format(d5)+"Z");
      doc.addField("hour", formatHourStr.format(d));

      doc.addField("logtype", this.bolt.type);
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.