示例#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);
 }