Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BzipReader"/> class.
        /// </summary>
        /// <param name="path">The path to the .xml.bz2 dump of wikipedia</param>
        public BzipReader(string path, IDecodedAction action, PerfCounter counter)
        {
            filePath = path;
            _action  = action;
            Counter  = counter;

            multithreadedIndexing = (Environment.ProcessorCount > 1);
            abortDecoding         = false;
            EnableYomi            = false;
            EnableAutoLogging     = false;
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BzipReader"/> class.
        /// </summary>
        /// <param name="path">The path to the .xml.bz2 dump of wikipedia</param>
        public BzipReader(string path, IDecodedAction action, PerfCounter counter)
        {
            filePath = path;
            _action = action;
            Counter = counter;

            multithreadedIndexing = (Environment.ProcessorCount > 1);
            abortDecoding = false;
            EnableYomi = false;
            EnableAutoLogging = false;
        }
Example #3
0
 public BzipReader(string path, IDecodedAction action)
     : this(path, action, new PerfCounter())
 {
 }
Example #4
0
 public BzipReader(string path, IDecodedAction action) : this(path, action, new PerfCounter())
 {
 }