Ejemplo n.º 1
0
 public DiskResultSet(string filePath, int batchingSize = 1000)
 {
     path      = filePath;
     batchSize = batchingSize;
     if (File.Exists(path))
     {
         path += "-" + Guid.NewGuid().ToString();
     }
     _fileManager = UFileManager.Create(path, new ObjectStore.CompactObjectSerializer(), false);
     list         = new ListedResultSet <T>();
 }
Ejemplo n.º 2
0
 public ObjectStore(string fileName)
 {
     if (File.Exists(fileName))
     {
         manager = new UFileManager(fileName, serializer);
     }
     else
     {
         manager = UFileManager.Create(fileName, serializer, true);
     }
     objectQueue = new HashVector <string, object>();
 }