Package com.kamikaze.docidset.impl

Examples of com.kamikaze.docidset.impl.NotDocIdSet


      }
    }
   
    if (notSelSet!=null)
    {
      notSelSet=new NotDocIdSet(notSelSet,maxDoc);
    }
   
    if (selSet!=null && notSelSet!=null)
    {
      DocIdSet[] sets=new DocIdSet[]{selSet,notSelSet};
View Full Code Here


 
  @Override
  public RandomAccessDocIdSet getRandomAccessDocIdSet(BoboIndexReader reader) throws IOException
  {
    final RandomAccessDocIdSet innerDocIdSet = _innerFilter.getRandomAccessDocIdSet(reader);
    final DocIdSet notInnerDocIdSet = new NotDocIdSet(innerDocIdSet, reader.maxDoc());
    return new RandomAccessDocIdSet()
    {
      @Override
      public boolean get(int docId)
      {
        return !innerDocIdSet.get(docId);
      }
      @Override
      public DocIdSetIterator iterator() throws IOException
      {
        return notInnerDocIdSet.iterator();
      }
    };
  }
View Full Code Here

  {
    _innerFilter = innerFilter;
  }
  @Override
  public DocIdSet getDocIdSet(IndexReader reader) throws IOException {
    return new NotDocIdSet(_innerFilter.getDocIdSet(reader),reader.maxDoc());
  }
View Full Code Here

    String plan = EMPTY_STRING;
    if(log.isDebugEnabled()) {
      plan = "NOT " + senseiDocIdSet.getQueryPlan();
    }
    return new SenseiDocIdSet(new NotDocIdSet(senseiDocIdSet.getDocIdSet(), maxDoc), docIdSetCardinality, plan);
  }
View Full Code Here

    if (positiveSet!=null){
      if (negativeSet==null){
        return positiveSet;
      }
      else {
        DocIdSet[] sets = new DocIdSet[]{positiveSet,new NotDocIdSet(negativeSet, reader.maxDoc())};
        return new AndDocIdSet(Arrays.asList(sets));
      }
    }
    else{
      if (negativeSet==null){
        return EmptyFilter.getInstance().getRandomAccessDocIdSet(reader);
      }
      else{
        // this could be optimize with AndNot in new Kamikaze
        return new NotDocIdSet(negativeSet, reader.maxDoc());
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.kamikaze.docidset.impl.NotDocIdSet

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.