private Table(ICompererAndEquality <JToken> comparer, string name) { keysModifiedInTx = new ConcurrentDictionary <JToken, Guid>(comparer); this.comparer = comparer; Name = name; SecondaryIndices = new List <SecondaryIndex>(); }
public PersistentDictionaryState(ICompererAndEquality<JToken> comparer) { Comparer = comparer; SecondaryIndicesState = new List<IBinarySearchTree<IComparable, IBinarySearchTree<JToken, JToken>>>(); KeyToFilePositionInFiles = new EmptyAVLTree<JToken, PositionInFile>(Comparer, JTokenCloner.Clone, file => new PositionInFile { Key = JTokenCloner.Clone(file.Key), Position = file.Position, Size = file.Size }); }
public PersistentDictionaryState(ICompererAndEquality <JToken> comparer) { Comparer = comparer; SecondaryIndicesState = new List <IBinarySearchTree <IComparable, IBinarySearchTree <JToken, JToken> > >(); KeyToFilePositionInFiles = new EmptyAVLTree <JToken, PositionInFile>(Comparer, JTokenCloner.Clone, file => new PositionInFile { Key = JTokenCloner.Clone(file.Key), Position = file.Position, Size = file.Size }); }