Example #1
0
        private void InitRowTransformationManually()
        {
            var hashCache = new HashCache <TInput>();

            hashCache.HashSumFunc = HashSumCalculation;
            CachedRowTransformation.CacheManager       = hashCache;
            CachedRowTransformation.TransformationFunc = MakeRowDistinct;
            CachedRowTransformation.CopyLogTaskProperties(this);
            CachedRowTransformation.MaxBufferSize = this.MaxBufferSize;
            CachedRowTransformation.FillCacheAfterTranformation = true;
            CachedRowTransformation.InitBufferObjects();
        }
Example #2
0
 private void InitRowTransformationManually()
 {
     CachedRowTransformation.TransformationFunc = TransformationFunc;
     CachedRowTransformation.CopyLogTaskProperties(this);
     CachedRowTransformation.MaxBufferSize = this.MaxBufferSize;
     if (CacheMode == CacheMode.PartialFromDb)
     {
         CachedRowTransformation.CacheManager = new PartialDbTableCache <TInput, TSource>();
     }
     else
     {
         CachedRowTransformation.CacheManager = new FullTableCache <TInput, TSource>();
     }
     (CachedRowTransformation.CacheManager as ILookupCacheManager <TInput, TSource>).Lookup = this;
     CachedRowTransformation.InitBufferObjects();
 }