示例#1
0
 /// <summary>
 ///     Open our files
 /// </summary>
 public void Open()
 {
     _fileManager.Scan();
     _writefile = _fileManager.OpenCurrentWriteFile();
     _readFile  = _fileManager.OpenCurrentReadFile();
     _count     = _fileManager.InitialQueueLength;
 }
示例#2
0
        private bool TryOpenNextReadFile()
        {
            // we are in the same file for reads and writes. i.e. it do currently not have any more records to read.
            if (!_fileManager.CanIncreaseReadFile())
            {
                return(false);
            }

            _readFile.Delete();
            _readFile = _fileManager.OpenNextReadFile();

            return(true);
        }
 /// <summary>
 ///     Open our files
 /// </summary>
 public void Open()
 {
     _fileManager.Scan();
     _writefile = _fileManager.OpenCurrentWriteFile();
     _readFile = _fileManager.OpenCurrentReadFile();
     _count = _fileManager.InitialQueueLength;
 }
        private bool TryOpenNextReadFile()
        {
            // we are in the same file for reads and writes. i.e. it do currently not have any more records to read.
            if (!_fileManager.CanIncreaseReadFile())
                return false;

            _readFile.Delete();
            _readFile = _fileManager.OpenNextReadFile();

            return true;
        }
 /// <summary>
 ///     Open our files
 /// </summary>
 public void Open()
 {
     _fileManager.Scan();
     _writefile = _fileManager.OpenCurrentWriteFile();
     _readFile  = _fileManager.OpenCurrentReadFile();
 }