Package org.apache.lucene.misc.search
Class MemoryAccountingBitsetCollectorManager
java.lang.Object
org.apache.lucene.misc.search.MemoryAccountingBitsetCollectorManager
- All Implemented Interfaces:
CollectorManager<MemoryAccountingBitsetCollector,MemoryAccountingBitsetCollectorManager.Result>
public class MemoryAccountingBitsetCollectorManager
extends Object
implements CollectorManager<MemoryAccountingBitsetCollector,MemoryAccountingBitsetCollectorManager.Result>
CollectorManager for MemoryAccountingBitsetCollector that supports concurrent search.
Creates multiple collectors for concurrent execution, each collector only allocates bitset for slices it processes, then merges with proper offset in reduce().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe result of a search, containing the matched document IDs and total memory used. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MemoryAccountingBitsetCollectorManager
-
-
Method Details
-
newCollector
- Specified by:
newCollectorin interfaceCollectorManager<MemoryAccountingBitsetCollector,MemoryAccountingBitsetCollectorManager.Result>
-
reduce
public MemoryAccountingBitsetCollectorManager.Result reduce(Collection<MemoryAccountingBitsetCollector> collectors) - Specified by:
reducein interfaceCollectorManager<MemoryAccountingBitsetCollector,MemoryAccountingBitsetCollectorManager.Result>
-