Пример #1
0
        private TokenPosting GetOrCreateTokenPostings(string token)
        {
            if (PostingsByToken.TryGetValue(token, out TokenPosting tokenPostings))
            {
                return(tokenPostings);
            }
            else
            {
                var result = new TokenPosting(token);
                PostingsByToken.Add(token, result);

                return(result);
            }
        }
Пример #2
0
 public void AddDecompressedPosting(TokenPosting tokenPosting)
 {
     PostingsByToken.Add(tokenPosting.Token, tokenPosting);
 }