public SimpleIndexReader(PartitionSearcher partitionSearcher, IndexDescriptor descriptor, IndexSamplingConfig samplingConfig, TaskCoordinator taskCoordinator) : base(descriptor) { this._partitionSearcher = partitionSearcher; this._descriptor = descriptor; this._samplingConfig = samplingConfig; this._taskCoordinator = taskCoordinator; }
public PartitionedIndexReader(IList <PartitionSearcher> partitionSearchers, IndexDescriptor descriptor, IndexSamplingConfig samplingConfig, TaskCoordinator taskCoordinator) : this(descriptor, partitionSearchers.Select(partitionSearcher->new SimpleIndexReader(partitionSearcher, descriptor, samplingConfig, taskCoordinator)).ToList())