Example #1
0
        public void BinaryReader()
        {
            var p2 = new PostingArray(@"c:\S0\SS\_dirt");

            for (int i = 1; i < p2.List.Length; i++)
            {
                Assert.IsTrue(p2.List[i].Document.hash > p2.List[i - 1].Document.hash);
            }
        }
Example #2
0
        public static PostingArray PA(ulong s0, ulong s1, ulong s2, float f0)
        {
            List <Posting> p = new List <Posting>();

            for (ulong s = s0; s <= s1; s += s2)
            {
                p.Add(new Posting(new Document(s), f0));
            }

            var pa = new PostingArray(p.ToArray());

            pa.Sort();
            return(pa);
        }