예제 #1
0
 public void Add(IEnumerable <ICompoundIndexKey> myKeys, long myVertexID, Helper.IndexAddStrategy myIndexAddStrategy = IndexAddStrategy.UNIQUE)
 {
     foreach (var key in myKeys)
     {
         AddEntry(key.Key, new HashSet <long>()
         {
             myVertexID
         }, myIndexAddStrategy, key.PropertyID);
     }
 }
예제 #2
0
 public override void Add(IComparable myKey, long?myVertexID, Helper.IndexAddStrategy myIndexAddStrategy = IndexAddStrategy.MERGE)
 {
     if (myKey != null)
     {
         if (myVertexID == null)
         {
             AddEntry(myKey, new HashSet <Int64>(), myIndexAddStrategy);
         }
         else
         {
             AddEntry(myKey, new HashSet <Int64>()
             {
                 (Int64)myVertexID
             }, myIndexAddStrategy);
         }
     }
 }
예제 #3
0
 public void AddRange(IEnumerable <KeyValuePair <IEnumerable <ICompoundIndexKey>, long> > myKeysValuePairs, Helper.IndexAddStrategy myIndexAddStrategy = IndexAddStrategy.UNIQUE)
 {
     foreach (var kvp in myKeysValuePairs)
     {
         foreach (var key in kvp.Key)
         {
             AddEntry(key.Key, new HashSet <long>()
             {
                 kvp.Value
             }, myIndexAddStrategy, key.PropertyID);
         }
     }
 }