Package com.alimama.mdrill.solr.realtime

Examples of com.alimama.mdrill.solr.realtime.MdrillDirectory


      }
      return getForWrite(partion,forwrite);
    }
   
    synchronized (forReadOnlyDir) {
      MdrillDirectory rtdir=forReadOnlyDir.get(p);
      if(rtdir!=null)
      {
        rtdir.setCore(this);
        rtdir.setPartion(p);
        return rtdir;
      }
     
      File f = new File(getDataDir(), partion);
      ReadOnlyDirectory ddd=new ReadOnlyDirectory(f , HadoopUtil.hadoopConfDir, ShardPartion.getHdfsRealtimePath(p.tablename,p.partion).toString());
      rtdir=ddd;
      forReadOnlyDir.put(p, ddd);
      rtdir.setCore(this);
      rtdir.setPartion(p);
      return rtdir;
    }
   
  }
View Full Code Here


          writer.setMergeFactor(10);
          writer.setUseCompoundFile(false);
          writer.close()
          reader=IndexReader.open(rd);
        }else{
          MdrillDirectory rtdir=getRealTime(p.partion,false);
          List<Directory> list=rtdir.getForSearch();
          IndexReader[] r=new IndexReader[list.size()];
          for(int i=0;i<list.size();i++)
          {
            Directory d=list.get(i);
            d.setCore(this,p);
View Full Code Here

TOP

Related Classes of com.alimama.mdrill.solr.realtime.MdrillDirectory

Copyright © 2018 www.massapicom. 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.