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); } }
public void AddDecompressedPosting(TokenPosting tokenPosting) { PostingsByToken.Add(tokenPosting.Token, tokenPosting); }