Ejemplo n.º 1
0
 private Table(ICompererAndEquality <JToken> comparer, string name)
 {
     keysModifiedInTx = new ConcurrentDictionary <JToken, Guid>(comparer);
     this.comparer    = comparer;
     Name             = name;
     SecondaryIndices = new List <SecondaryIndex>();
 }
Ejemplo n.º 2
0
 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
     });
 }
Ejemplo n.º 3
0
 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
     });
 }