示例#1
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);
        }
示例#2
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));
 }
示例#3
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));
        }