Example #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);
        }
Example #2
0
        public MixedManagedFast(long size, MixedUserFunctions functions,
                                LogSettings logSettings, CheckpointSettings checkpointSettings)
        {
            MixedFunctionsWrapper.userFunctions = functions;

            store = FasterFactory.Create
                    <MixedKeyWrapper, MixedValueWrapper, MixedInputWrapper,
                     MixedOutputWrapper, MixedContextWrapper, MixedFunctionsWrapper,
                     IFasterKV_Mixed>
                        (size, logSettings, checkpointSettings);
        }