public MapReduceMonthlyAskerTagsStep(string repository, string month, EasyAnalysis.Framework.ConnectionStringProviders.IConnectionStringProvider mongoDBDataProvider)
        {
            _repository = repository;

            _month = month;

            var client = new MongoClient(mongoDBDataProvider.GetConnectionString(repository));

            _database = client.GetDatabase(repository);

            _userActivityCollection = _database.GetCollection<BsonDocument>("asker_activities");
        }
Ejemplo n.º 2
0
        public ImportNewUsersStep(string repository, string month, EasyAnalysis.Framework.ConnectionStringProviders.IConnectionStringProvider mongoDBDataProvider)
        {
            _repository = repository;

            _month = month;
            
            var client = new MongoClient(mongoDBDataProvider.GetConnectionString(repository));

            _database = client.GetDatabase(repository);

            _userCollection = _database.GetCollection<BsonDocument>("users");

            _threadCollection = _database.GetCollection<BsonDocument>(_month + "_" + "threads");
        }