Package com.kamikaze.docidset.impl

Examples of com.kamikaze.docidset.impl.OrDocIdSet


        if (_vals.size()<OR_THRESHOLD){
          ArrayList<DocIdSet> docSetList = new ArrayList<DocIdSet>(_vals.size());
          for (String val : _vals){
            docSetList.add(new TermDocIdSet(_name,val));
          }
          return new OrDocIdSet(docSetList).iterator();
        }
        else{
          return _innerSet.iterator();
        }
      }
View Full Code Here


        if (_vals.size()<OR_THRESHOLD){
          ArrayList<DocIdSet> docSetList = new ArrayList<DocIdSet>(_vals.size());
          for (String val : _vals){
            docSetList.add(new TermDocIdSet(_reader, _name,val));
          }
          return new OrDocIdSet(docSetList).iterator();
        }
        else{
          return _innerSet.iterator();
        }
      }
View Full Code Here

          {
            notSelSet=notSelSetList.get(0);
          }
          else
          {
            notSelSet=new OrDocIdSet(notSelSetList);
          }
        } 
      }
    }
   
View Full Code Here

        if (_vals.size()<OR_THRESHOLD){
          ArrayList<DocIdSet> docSetList = new ArrayList<DocIdSet>(_vals.size());
          for (String val : _vals){
            docSetList.add(new TermDocIdSet(_name,val));
          }
          return new OrDocIdSet(docSetList).iterator();
        }
        else{
          return _innerSet.iterator();
        }
      }
View Full Code Here

        RandomAccessDocIdSet s = f.getRandomAccessDocIdSet(reader);
        list.add(s);
        randomAccessList.add(s);
      }
      final RandomAccessDocIdSet[] randomAccessDocIdSets = randomAccessList.toArray(new RandomAccessDocIdSet[randomAccessList.size()]);
      final DocIdSet orDocIdSet = new OrDocIdSet(list);
      return new RandomAccessDocIdSet()
      {
        @Override
        public boolean get(int docId)
        {
          for(RandomAccessDocIdSet s : randomAccessDocIdSets)
          {
            if(s.get(docId)) return true;
          }
          return false;
        }

        @Override
        public DocIdSetIterator iterator() throws IOException
        {
          return orDocIdSet.iterator();
        }
      };
    }
  }
View Full Code Here

      List<DocIdSet> list = new ArrayList<DocIdSet>(_filters.size());
      for (Filter f : _filters)
      {
        list.add(f.getDocIdSet(reader));
      }
      return new OrDocIdSet(list);
    }
  }
View Full Code Here

      List<DocIdSet> docIdSetList = new ArrayList<DocIdSet>(decorated.size());
      for (BoboIndexReader bobo : decorated){
        docIdSetList.add(buildFilterSet(bobo));

      }
      return new OrDocIdSet(docIdSetList);
    }
    else{
      throw new IllegalStateException("reader not instance of "+ZoieIndexReader.class);
    }
  }
View Full Code Here

    } else if (totalDocIdSetCardinalityEstimate.isZero()) {
      return SenseiDocIdSet.buildMatchNone(plan);
    } else if (docIdSets.size() == 1) {
      return new SenseiDocIdSet(docIdSets.get(0), totalDocIdSetCardinalityEstimate, plan);
    } else {
      return new SenseiDocIdSet(new OrDocIdSet(docIdSets), totalDocIdSetCardinalityEstimate, plan);
    }
  }
View Full Code Here

    else{
      if (isAnd) {
        return new AndDocIdSet(docSetList);
      }
      else{
        return new OrDocIdSet(docSetList);
      }
    }
  }
View Full Code Here

TOP

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

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.