Examples of inPlaceOr()


Examples of org.apache.lucene.util.OpenBitSetDISI.inPlaceOr()

      final OpenBitSetDISI bits = new OpenBitSetDISI(in.maxDoc());
      final DocIdSet docs = preserveFilter.getDocIdSet(in);
      if (docs != null) {
        final DocIdSetIterator it = docs.iterator();
        if (it != null) {
          bits.inPlaceOr(it);
        }
      }
      // this is somehow inverse, if we negate the filter, we delete all documents it matches!
      if (!negateFilter) {
        bits.flip(0, in.maxDoc());
View Full Code Here

Examples of org.apache.lucene.util.OpenBitSetDISI.inPlaceOr()

          DocIdSet dis = shouldFilters.get(i).getDocIdSet(reader);
          if(dis instanceof OpenBitSet) {
            // optimized case for OpenBitSets
            res.or((OpenBitSet) dis);
          } else {
            res.inPlaceOr(getDISI(shouldFilters, i, reader));
          }
        }
      }
    }
   
View Full Code Here

Examples of org.apache.lucene.util.OpenBitSetDISI.inPlaceOr()

                        // optimized case for OpenBitSets
                        res.or((OpenBitSet) dis);
                    } else if (dis instanceof OpenBitDocSet) {
                        res.or(((OpenBitDocSet) dis).set());
                    } else {
                        res.inPlaceOr(getDISI(shouldFilters, i, reader));
                    }
                }
            }
        }
View Full Code Here

Examples of org.apache.lucene.util.OpenBitSetDISI.inPlaceOr()

          DocIdSet dis = ((Filter)shouldFilters.get(i)).getDocIdSet(reader);
          if(dis instanceof OpenBitSet) {
            // optimized case for OpenBitSets
            res.or((OpenBitSet) dis);
          } else {
            res.inPlaceOr(getDISI(shouldFilters, i, reader));
          }
        }
      }
    }
   
View Full Code Here

Examples of org.apache.lucene.util.OpenBitSetDISI.inPlaceOr()

          DocIdSet dis = ((Filter)shouldFilters.get(i)).getDocIdSet(reader);
          if(dis instanceof OpenBitSet) {
            // optimized case for OpenBitSets
            res.or((OpenBitSet) dis);
          } else {
            res.inPlaceOr(getDISI(shouldFilters, i, reader));
          }
        }
      }
    }
   
View Full Code Here

Examples of org.apache.lucene.util.OpenBitSetDISI.inPlaceOr()

          DocIdSet dis = shouldFilters.get(i).getDocIdSet(reader);
          if(dis instanceof OpenBitSet) {
            // optimized case for OpenBitSets
            res.or((OpenBitSet) dis);
          } else {
            res.inPlaceOr(getDISI(shouldFilters, i, reader));
          }
        }
      }
    }
   
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.