Package org.apache.solr.request.compare

Examples of org.apache.solr.request.compare.ShardGroupByTermNum


    QuickHashMap<GroupListCache.GroupList,RefRow> debug=new QuickHashMap<GroupListCache.GroupList, MdrillUtils.RefRow>(this.parse.limit_offset);

    for(Entry<GroupListCache.GroupList,RefRow> e:groups.entrySet())
    {
      debug.put(e.getKey(), e.getValue());
      ShardGroupByTermNum mrow=new ShardGroupByTermNum(e.getKey(), e.getValue());
      if (res.size() < this.parse.limit_offset) {
        res.add(mrow);
      } else if (this.container.cmpTermNum.compare(res.peek(), mrow) > 0) {
        res.add(mrow);
        ShardGroupByTermNum free=res.poll();
        toremove.add(free.key);
      }else{
        toremove.add(mrow.key);
      }
    }
View Full Code Here


 
  private void delayPut(QuickHashMap<GroupListCache.GroupList,RefRow> groups,RefRow cnt,GroupListCache.GroupList group)
  {
    if(cnt.delayPut)
    {
      if( this.container.cmpTermNum.compare(smallestShardGroup,new ShardGroupByTermNum(group, cnt))>0){
        cnt.delayPut=false;
        groups.put(group.copy( this.container.groupListCache), cnt);

      }else{
        this.container.freeRow(group);
View Full Code Here

TOP

Related Classes of org.apache.solr.request.compare.ShardGroupByTermNum

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.