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