Examples of fastGet()


Examples of org.apache.lucene.util.OpenBitSet.fastGet()

    if ("get".equals(test)) {
      for (int it=0; it<iter; it++) {
        for (int i=0; i<numSets; i++) {
          if (impl=="open") {
            OpenBitSet oset = osets[i];
            for (int k=0; k<bitSetSize; k++) if (oset.fastGet(k)) ret++;
          } else {
            BitSet bset = sets[i];
            for (int k=0; k<bitSetSize; k++) if (bset.get(k)) ret++;
          }
        }
View Full Code Here

Examples of org.apache.lucene.util.OpenBitSet.fastGet()

            if (totalHeap >= maxHeap) {
              LOG.warn("Max heap size exceeded for this request [{0}] max [{1}] for [{2}] and selector [{3}]",
                  totalHeap, maxHeap, context, selector);
              return docs;
            }
            if (docsInRowSpanToFetch.fastGet(cursor)) {
              maxDocsToFetch--;
              int docID = primeDocId + cursor;
              segmentReader.document(docID, fieldSelector);
              Document document = fieldSelector.getDocument();
              if (highlighter.shouldHighlight()) {
View Full Code Here

Examples of org.apache.lucene.util.OpenBitSet.fastGet()

        assertNull(
            "Complement-Set must not contain docs from the original set (doc="+ docNum+")",
            reader.document(docNum).getFieldable("del"));
        assertFalse(
            "Complement-Set must not contain docs from the original set (doc="+docNum+")",
            resultSet.fastGet(docNum));
      }
    } finally {
      reader.close();
      dir.close();
    }
View Full Code Here

Examples of org.apache.lucene.util.OpenBitSet.fastGet()

          }
          public boolean get(int docId) {
            if (multi) {
              return multiCache._nestedArray.contains(docId, openBitSet);
            } else {
              return openBitSet.fastGet(dataCache.orderArray.get(docId));
            }
          }
        };
      }
    }
View Full Code Here

Examples of org.apache.lucene.util.OpenBitSet.fastGet()

        @Override
        public boolean get(int docId) {
          if (multi) {
            return multiCache._nestedArray.contains(docId, openBitSet);
          } else {
            return openBitSet.fastGet(dataCache.orderArray.get(docId));
          }
        }
      };
    }
  }
View Full Code Here

Examples of org.apache.lucene.util.OpenBitSet.fastGet()

        OpenBitSet docsHit = ((lucandra.IndexReader) reader).getDocsHit();      
      
        List<ByteBuffer> filteredValues = new ArrayList<ByteBuffer>();
        for(int i=0; i<docsHit.capacity(); i++){         
            if(docsHit.fastGet(i))
                filteredValues.add(ByteBuffer.wrap(CassandraUtils.writeVInt(i)));
        }

        if (filteredValues.size() == 0)
            return null;
View Full Code Here

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

        assertNull(
            "Complement-Set must not contain docs from the original set (doc="+ docNum+")",
            reader.document(docNum).getFieldable("del"));
        assertFalse(
            "Complement-Set must not contain docs from the original set (doc="+docNum+")",
            resultSet.fastGet(docNum));
      }
    } finally {
      reader.close();
      dir.close();
    }
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.