List/Node based ILC
Наследование: BasicIndex
Пример #1
0
        //        public override SearchCost Cost {
        //            get {
        //                var internalCost = this.leader.Cost.Internal;
        //                Console.WriteLine ("@@@ xxxinternalCost: {0}", internalCost);
        //                foreach (var ilc in this.rows) {
        //                    internalCost += ilc.Cost.Internal;
        //                }
        //                return new SearchCost (this.DB.NumberDistances, internalCost);
        //            }
        //        }
        public override void Load(BinaryReader Input)
        {
            base.Load(Input);
            var num = Input.ReadInt32 ();

            this.leader = new NANNI();
            this.leader.Load (Input);

            this.rows = new ANNI[num];
            for (int i = 0; i < num; ++i) {
                this.rows[i] = new ANNI();
                this.rows[i].Load (Input);
            }
        }
Пример #2
0
        public static List<string> ExecuteNANNI(IndexArgumentSetup setup, string nick)
        {
            var idxname = String.Format ("{0}/Index.NANNI", nick);
            var reslist = new List<string> ();
            var resname = Execute (setup, nick, idxname, (db) => {
                var nilc = new NANNI ();
                nilc.Build (CreateANNI (setup.BINARY_DATABASE, (int)Math.Abs (setup.QARG)));
                return nilc;
            });

            reslist.Add (resname);
            //			resname = Execute (setup, nick, idxname + "S", (db) => {
            //				var nilc = IndexGenericIO.Load(idxname);
            //				return nilc;
            //			});
            //			reslist.Add (resname);
            return reslist;
        }