Exemplo n.º 1
0
        public static void Index(Account account)
        {
            _all.Index(account);
            if (account.cityIndex > 0)
            {
                ref RecommendIndexGroup group = ref _byCity[account.cityIndex];
                if (group.IsEmpty)
                {
                    group = new RecommendIndexGroup(StringIndexer.MaxInterestCount);
                }

                group.Index(account);
            }
Exemplo n.º 2
0
        static RecommendIndex()
        {
            _all       = new RecommendIndexGroup(StringIndexer.MaxInterestCount);
            _byCity    = new RecommendIndexGroup[StringIndexer.MaxCityCount];
            _byCountry = new RecommendIndexGroup[StringIndexer.MaxCountryCount];

            for (int i = 0; i < _byCity.Length; i++)
            {
                _byCity[i] = new RecommendIndexGroup(StringIndexer.MaxInterestCount);
            }

            for (int i = 0; i < _byCountry.Length; i++)
            {
                _byCountry[i] = new RecommendIndexGroup(StringIndexer.MaxInterestCount);
            }
        }