Package com.alipay.bluewhale.core.cluster.SolrInfo

Examples of com.alipay.bluewhale.core.cluster.SolrInfo.ShardCount


      }
      partion = tablePartions.get(index);
    }
    if (partion != null) {
      long cnt = solrservice.checkSolr(tablename, partion);
      this.recorecount.put(partion, new ShardCount(cnt));
 
    }
  }
View Full Code Here


        {
          String part=dayPartions.get(strday);
          if(this.containsTablePartion(part))
          {
            long cnt = solrservice.checkSolr(tablename, part,strday);
            this.daycount.put(strday, new ShardCount(cnt));
          }
        }
    }
  }
View Full Code Here

          index = 0;
          lastsmallDayIndex.set(0);
        }
        String strday=smallestdaysarr[index];
        long cnt = solrservice.checkSolr(tablename, smallestPartion,strday);
      this.smallest.put(strday, new ShardCount(cnt));
    }
  }
View Full Code Here

          index = 0;
          lastbigDayIndex.set(0);
        }
        String strday=biggestestdaysarr[index];
        long cnt = solrservice.checkSolr(tablename, biggestPartion,strday);
      this.biggest.put(strday, new ShardCount(cnt));
    }
  }
View Full Code Here

  public HashMap<String, ShardCount> topMap(HashMap<String, ShardCount> map,boolean isdesc,int num)
  {
    ArrayList<shardCountDayCmp> list=new ArrayList<shardCountDayCmp>();
    for(Entry<String, ShardCount> e:map.entrySet())
    {
      ShardCount sc=e.getValue();
      if(sc.cnt>0&&!sc.isTimeout())
      {
        list.add(new shardCountDayCmp(e.getKey(), sc,isdesc));
      }
    }
   
View Full Code Here

TOP

Related Classes of com.alipay.bluewhale.core.cluster.SolrInfo.ShardCount

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.