Exemplo n.º 1
0
 Create <TKey, TValue, TInput, TOutput, TContext, TFunctions>
     (long indexSizeBuckets, IDevice logDevice,
     TFunctions functions,
     long LogTotalSizeBytes  = 17179869184, double LogMutableFraction = 0.9, int LogPageSizeBits = 25,
     bool treatValueAsAtomic = false, string checkpointDir            = null)
     where TFunctions : IUserFunctions <TKey, TValue, TInput, TOutput, TContext>
 {
     return(HashTableManager.GetMixedManagedFasterHashTable <TKey, TValue, TInput, TOutput, TContext, TFunctions>(indexSizeBuckets, logDevice, checkpointDir, functions, treatValueAsAtomic, LogTotalSizeBytes, LogMutableFraction, LogPageSizeBits));
 }
Exemplo n.º 2
0
        Create <TKey, TValue, TInput, TOutput, TContext, TFunctions>
            (long indexSizeBuckets, TFunctions functions,
            LogSettings logSettings = null,
            CheckpointSettings checkpointSettings = null,
            bool treatValueAsAtomic = true)
            where TFunctions : IUserFunctions <TKey, TValue, TInput, TOutput, TContext>
        {
            if (logSettings == null)
            {
                logSettings = new LogSettings();
            }
            if (checkpointSettings == null)
            {
                checkpointSettings = new CheckpointSettings();
            }

            return(HashTableManager.GetMixedManagedFasterHashTable
                   <TKey, TValue, TInput, TOutput, TContext, TFunctions>
                       (indexSizeBuckets, functions, logSettings, checkpointSettings, treatValueAsAtomic));
        }