natix.CompactDS.Plain64PairInvertedIndex.Add C# (CSharp) Method

Add() public method

Adds a posting list to the index. Returns the corresponding symbol
public Add ( IEnumerable sortedlist, IEnumerable distances ) : int
sortedlist IEnumerable Sortedlist.
distances IEnumerable
return int
        public int Add(IEnumerable<long> sortedlist, IEnumerable<double> distances)
        {
            var node = new Node ();
            node.Add (sortedlist, distances);
            this.postinglist.Add (node);
            this.numberOfItems += node.Count;
            return this.postinglist.Count - 1;
        }