Examples of PartionKey


Examples of org.apache.solr.core.SolrResourceLoader.PartionKey

    if(corename==null)
    {
      corename="";
    }
   
    PartionKey p=new PartionKey(corename, partion);
   
    String partionKey=corename+"@"+partion+"@"+SolrResourceLoader.getCacheFlushKey(p);
    File f = new File(getDataDir(), partion);
    return getSearcherByPath(p,partionKey, f.getAbsolutePath(), mdirs, isclearCache, ishb);
       
View Full Code Here

Examples of org.apache.solr.core.SolrResourceLoader.PartionKey

    String corename = this.getName();
    if (corename == null) {
      corename = "";
    }
    PartionKey p = new PartionKey(corename, partion);

    boolean isWritePool = false;
    synchronized (forRealTimeDir) {

      RealTimeDirectory rtn = forRealTimeDir.remove(p);
View Full Code Here

Examples of org.apache.solr.core.SolrResourceLoader.PartionKey

      corename="";
    }
   
    boolean isrealtime=forwrite||String.valueOf(getTablemode(corename)).indexOf("@realtime@")>=0;
   
    PartionKey p=new PartionKey(corename, partion);
   
    if(isrealtime)
    {
      synchronized (forReadOnlyDir) {
        forReadOnlyDir.remove(p);
View Full Code Here

Examples of org.apache.solr.core.SolrResourceLoader.PartionKey

     
      Vertify hdfsValue = e.getValue();
      Vertify localValue = localVertify.remove(partion);
      if (localValue == null  || !localValue.getVertify().equals(hdfsValue.getVertify())) {
        this.syncPartion(partion, hdfsValue.getPath());
        SolrResourceLoader.SetCacheFlushKey(new PartionKey(this.tablename, partion),System.currentTimeMillis());
      }
    }
    this.partstat.syncClearStat();

    HashSet<String> skiplist=new HashSet<String>();
    skiplist.add("default");
    skiplist.add("");

   
    for (Entry<String, Vertify> e : localVertify.entrySet()) {
      if(skiplist.contains(e.getKey()))
      {
        continue;
      }
      this.dropPartion(e.getValue().getPath());
      PartionKey p=new PartionKey(this.tablename, e.getKey());
      SolrResourceLoader.SetCacheFlushKey(p,System.currentTimeMillis());
      SolrResourceLoader.DropCacheFlushKey(p);
    }
    LOG.info("higolog loadIndex finish:" + this.tablename + ",ischange"  + ischange );
    return false;
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.