Esempio n. 1
0
        internal override IList <IEnumerable <KeyValuePair <long, TSource> > > GetOrderedEnumerables(QueryOptions options)
        {
            ReverseList <TSource>          reversed    = new ReverseList <TSource> (source.ToListOrdered());
            OrderablePartitioner <TSource> partitioner = ParallelPartitioner.CreateForStrips(reversed, 1);

            return(WrapHelper.Wrap(partitioner.GetOrderablePartitions(options.PartitionCount)));
        }