void processBufferedChildBuckets() throws IOException { if (bucketBuffer.isEmpty()) { return; } final int prevParentDoc = parentDocs.prevSetBit(currentParentDoc - 1); int childDocId = childDocs.docID(); if (childDocId <= prevParentDoc) { childDocId = childDocs.advance(prevParentDoc + 1); } for (; childDocId < currentParentDoc; childDocId = childDocs.nextDoc()) { cachedScorer.doc = childDocId; final long[] buffer = bucketBuffer.buffer; final int size = bucketBuffer.size(); for (int i = 0; i < size; i++) { collectBucket(sub, childDocId, buffer[i]); } } bucketBuffer.clear(); } }
@Override public void newTransaction() { mapKeysInCurrentTx.forEach(newTransactionProcedure); mapKeysInCurrentTx.clear(); }
@Override public void newTransaction() { mapKeysInCurrentTx.forEach(newTransactionProcedure); mapKeysInCurrentTx.clear(); }
void processBufferedChildBuckets() throws IOException { if (bucketBuffer.isEmpty()) { return; } final int prevParentDoc = parentDocs.prevSetBit(currentParentDoc - 1); int childDocId = childDocs.docID(); if (childDocId <= prevParentDoc) { childDocId = childDocs.advance(prevParentDoc + 1); } for (; childDocId < currentParentDoc; childDocId = childDocs.nextDoc()) { final long[] buffer = bucketBuffer.buffer; final int size = bucketBuffer.size(); for (int i = 0; i < size; i++) { collectBucket(sub, childDocId, buffer[i]); } } bucketBuffer.clear(); }
void processBufferedChildBuckets() throws IOException { if (bucketBuffer.isEmpty()) { return; } final int prevParentDoc = parentDocs.prevSetBit(currentParentDoc - 1); int childDocId = childDocs.docID(); if (childDocId <= prevParentDoc) { childDocId = childDocs.advance(prevParentDoc + 1); } for (; childDocId < currentParentDoc; childDocId = childDocs.nextDoc()) { final long[] buffer = bucketBuffer.buffer; final int size = bucketBuffer.size(); for (int i = 0; i < size; i++) { collectBucket(sub, childDocId, buffer[i]); } } bucketBuffer.clear(); }