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
        public MixedManagedFast(long size, IDevice logDevice, string checkpointDir, MixedUserFunctions functions, long LogTotalSizeBytes = 17179869184, double LogMutableFraction = 0.9, int LogPageSizeBits = 25)
        {
            MixedFunctionsWrapper.userFunctions = functions;

            store = HashTableManager.GetFasterHashTable
                    <MixedKeyWrapper, MixedValueWrapper, MixedInputWrapper,
                     MixedOutputWrapper, MixedContextWrapper, MixedFunctionsWrapper,
                     IFasterKV_Mixed>
                        (size, logDevice, checkpointDir, LogTotalSizeBytes, LogMutableFraction, LogPageSizeBits);
        }
Exemplo n.º 3
0
 Create <TKey, TValue, TInput, TOutput, TContext, TFunctions, TIFaster>(
     long indexSizeBuckets, IDevice logDevice, IDevice objectLogDevice = null,
     long LogTotalSizeBytes = 17179869184, double LogMutableFraction = 0.9, int LogPageSizeBits = 25,
     string checkpointDir   = null
     )
 {
     return
         (HashTableManager.GetFasterHashTable
          <TKey, TValue, TInput, TOutput,
           TContext, TFunctions, TIFaster>
              (indexSizeBuckets, logDevice, objectLogDevice, checkpointDir,
              LogTotalSizeBytes, LogMutableFraction, LogPageSizeBits));
 }
Exemplo n.º 4
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));
        }
Exemplo n.º 5
0
        Create <TKey, TValue, TInput, TOutput, TContext, TFunctions, TIFaster>(
            long indexSizeBuckets,
            LogSettings logSettings = null,
            CheckpointSettings checkpointSettings = null
            )
        {
            if (logSettings == null)
            {
                logSettings = new LogSettings();
            }
            if (checkpointSettings == null)
            {
                checkpointSettings = new CheckpointSettings();
            }

            return
                (HashTableManager.GetFasterHashTable
                 <TKey, TValue, TInput, TOutput,
                  TContext, TFunctions, TIFaster>
                     (indexSizeBuckets, logSettings, checkpointSettings));
        }