Examples of BitDocSet


Examples of org.apache.solr.search.BitDocSet

     for(Entry<Integer, LongBit> e:this.bitMaps.entrySet())
     {
       bits[e.getKey()]=e.getValue().bit;
     }
    
     BitDocSet rtn= new BitDocSet(new OpenBitSet(bits, numwords));
    
     long endTime = System.currentTimeMillis();
        int ttime = (int)(endTime-startTime);
        if(ttime>1)
        {
View Full Code Here

Examples of org.apache.solr.search.BitDocSet

   
  int[][] join=null;
  private int[] joinRevert=null;
  public DocSet filterByRight(DocSet leftDocs,DocSet rightDocs)
  {
    BitDocSet docset=new BitDocSet();
    DocIterator iter = rightDocs.iterator();
    while (iter.hasNext()) {
      int doc = iter.nextDoc();
      int[] list=join[doc];
      if(list==null)
      {
        continue;
      }
      for(int jp:list)
      {
        docset.add(jp);
      }
    }
   
    return leftDocs.intersection(docset);
  }
View Full Code Here

Examples of org.apache.solr.search.BitDocSet

  public DocValueReadInterface tnr;
 
 
  public void init(String field, IndexReader reader,IndexSchema schema) throws IOException
  {
    this.bits = new BitDocSet(new OpenBitSet(reader.maxDoc()));
    this.field = field;
   
    FieldType schemaft=schema.getFieldType(field);
    String prefix=TrieField.getMainValuePrefix(schemaft);
    SchemaField sf = schema.getField(field);
View Full Code Here

Examples of org.apache.solr.search.BitDocSet

    if (uni.checkEmpty()) {
      return true;
    }

    BitDocSet tmp = null;
    if (docs != null) {
      tmp = (BitDocSet) docs.andNot(uni.bits);
      if (tmp != null && tmp.size() <= 0) {
        return true;
      }
    }

    log.info("addDoclist start" + uni.field + " ,this.baseAdvanceDocs="+(uni.baseAdvanceDocs==null?0:uni.baseAdvanceDocs.size()));
View Full Code Here

Examples of org.apache.solr.search.BitDocSet

   
    if (uni.checkEmpty()) {
      return ;
    }

    BitDocSet tmp=null;
    if(baseAdvanceDocs!=null)
    {
      tmp=(BitDocSet) baseAdvanceDocs.andNot(this.uni.bits);

      if(tmp!=null&&tmp.size()<=0)
      {
        return ;
      }
    }
 
View Full Code Here

Examples of org.apache.solr.search.BitDocSet

    {
      subdocset[0]=docset;
    }else{
      for (int i = 0; i < subReaders.length; i++)
     {
        subdocset[i]=new BitDocSet();
     }
     
      int index=0;
      int end=this.getend(index);
      DocIterator iter = docset.iterator();
View Full Code Here

Examples of org.apache.solr.search.BitDocSet

    {
      subdocset[0]=docset;
    }else{
      for (int i = 0; i < subReaders.length; i++)
     {
        subdocset[i]=new BitDocSet();
     }
     
      int index=0;
      int end=this.getend(index);
      DocIterator iter = docset.iterator();
View Full Code Here

Examples of org.apache.solr.search.BitDocSet

          bs.fastSet(id);
          ids[count++]=id;
        }
      }
    }
    bds = new BitDocSet(bs,bitsToSet);
    hds = new HashDocSet(ids,0,count);
  }
View Full Code Here

Examples of org.apache.solr.search.BitDocSet

    if ("test".equals(test)) {
      for (int it=0; it<iter; it++) {
        generate(randSize ? rand.nextInt(bitSetSize) : bitSetSize, numBitsSet);
        OpenBitSet bs1=bs;
        BitDocSet bds1=bds;
        HashDocSet hds1=hds;
        generate(randSize ? rand.nextInt(bitSetSize) : bitSetSize, numBitsSet);

        OpenBitSet res = ((OpenBitSet)bs1.clone());
        res.and(bs);
        int icount = (int)res.cardinality();

        test(bds1.intersection(bds).size() == icount);
        test(bds1.intersectionSize(bds) == icount);
        if (bds1.intersection(hds).size() != icount) {
          DocSet ds = bds1.intersection(hds);
          System.out.println("STOP");
        }

        test(bds1.intersection(hds).size() == icount);
        test(bds1.intersectionSize(hds) == icount);
        test(hds1.intersection(bds).size() == icount);
        test(hds1.intersectionSize(bds) == icount);
        test(hds1.intersection(hds).size() == icount);
        test(hds1.intersectionSize(hds) == icount);
View Full Code Here

Examples of org.apache.solr.search.BitDocSet

          bs.fastSet(id);
          ids[count++]=id;
        }
      }
    }
    bds = new BitDocSet(bs,bitsToSet);
    hds = new HashDocSet(ids,0,count);
  }
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.