DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
ScatteringFileStoreDataFactory.cs
Go to the documentation of this file.
1 using System;
2 
3 namespace Deveel.Data.Store {
5  public ScatteringFileStoreDataFactory(IFileSystem fileSystem, string basePath, int maxSliceSize, string fileExt) {
6  if (String.IsNullOrEmpty(basePath))
7  throw new ArgumentNullException("basePath");
8  if (fileSystem == null)
9  throw new ArgumentNullException("fileSystem");
10 
11  FileSystem = fileSystem;
12  BasePath = basePath;
13  MaxSliceSize = maxSliceSize;
14  FileExtension = fileExt;
15  }
16 
17  public string BasePath { get; private set; }
18 
19  public string FileExtension { get; private set; }
20 
21  public int MaxSliceSize { get; private set; }
22 
23  public IFileSystem FileSystem { get; private set; }
24 
25  public IStoreData CreateData(string name) {
26  return new ScatteringFileStoreData(FileSystem, BasePath, name, FileExtension, MaxSliceSize);
27  }
28  }
29 }
A factory that creates instances of IStoreData that are used to access store data blocks...
ScatteringFileStoreDataFactory(IFileSystem fileSystem, string basePath, int maxSliceSize, string fileExt)
IStoreData CreateData(string name)
Creates a new block of data identified by the given name.
An interface for low level store data access methods.
Definition: IStoreData.cs:23