Examples of RamWriter


Examples of com.alimama.mdrill.index.utils.RamWriter

    }

    heartBeater = new HeartBeater(context);
    heartBeater.needHeartBeat();
    this.doclistcache=new DocumentList();
    this.ramMerger = new RamWriter();

    String[] fieldslist = fieldStrs.split(",");
    this.documentConverter = new DocumentConverter(fieldslist,"solrconfig.xml", "schema.xml");
    shardWriter = this.initShardWriter(context);
    LOG.info("end initShardWriter");
View Full Code Here

Examples of com.alimama.mdrill.index.utils.RamWriter

  }

    protected void cleanup(Context context) throws IOException,  InterruptedException {
    try {
      LOG.info("begin clean up");
      RamWriter ram = doclistcache.toRamWriter(documentConverter, analyzer,context);
      ramMerger.process(ram);
      if (this.maybeFlush(ramMerger,context,true)) {
        ramMerger = null;
      }
      doclistcache=new DocumentList();
View Full Code Here

Examples of com.alimama.mdrill.index.utils.RamWriter

      }
      if(!doclistcache.isoversize())
      {
        continue;
      }
      RamWriter ram = doclistcache.toRamWriter(documentConverter, analyzer,context);
      doclistcache=new DocumentList();

     
      ramMerger.process(ram);
      if (this.maybeFlush(ramMerger,context,false)) {
        ramMerger =  new RamWriter();;
      }
    }
  }
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.