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); } }
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); } } }
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); } } }