Example #1
0
 public Enumerator(IBatchEnumerator <T> source, int batchSize, int take)
 {
     this.source = source;
     BatchSize   = batchSize;
     sourceBatch = new T[batchSize];
     this.take   = take;
 }
Example #2
0
 public Enumerator(IBatchEnumerator <T> source, int skip)
 {
     this.source = source;
     this.skip   = skip;
     sourceBatch = new T[BatchSize];
 }
 /// <summary>
 /// abstract SetEnumeration Implementation
 /// </summary>
 /// <param name="enumerator"></param>
 protected override void SetEnumerator(out IBatchEnumerator <TResult> enumerator)
 {
     enumerator = new BatchEnumerator <TModel, TResult>(Items, Response, Order, Filter, BatchSizeLocal);
 }
Example #4
0
 public Enumerator(IBatchEnumerator <T> source, EqualityComparer <T> equality)
 {
     this.source = source;
     unique      = new UniqueList <T>(BatchSize, equality);
     sourceBatch = new T[BatchSize];
 }
Example #5
0
 public Enumerator(IBatchEnumerator <T> source, Func <T, TResult> selector)
 {
     this.source   = source;
     this.selector = selector;
     sourceBatch   = new T[BatchSize];
 }
Example #6
0
 public Enumerator(IBatchEnumerator <T> source, Func <T, bool> predicate)
 {
     this.source    = source;
     this.predicate = predicate;
     sourceBatch    = new T[BatchSize];
 }
 /// <summary>
 /// SetEnumerator implementation based on AbstractBaseEnumerable abstract method
 /// </summary>
 /// <param name="enumerator"></param>
 protected override void SetEnumerator(out IBatchEnumerator <TModel> enumerator)
 {
     enumerator = new BatchEnumeratorAggregate <TModel>(Items);
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="enumerator"></param>
 protected abstract void SetEnumerator (out IBatchEnumerator<TResult> enumerator);