Beispiel #1
0
        public void BuildIndexes()
        {
            //   _ng.coding_table.Save();
            //  _ng.coding_table.FreeMemory();

            System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
            if (!table.TableCell.Root.Elements().Any())
            {
                Console.WriteLine("table empty!");
                return;
            }
            sw.Start();

            NodeGenerator.Build();

            sw.Stop();
            Console.WriteLine("Load data and nametable ok. Duration={0}", sw.ElapsedMilliseconds);
            sw.Restart();

            //ng.Build();
            ps_index.Build();

            sw.Stop();
            Console.WriteLine("ps_index.Build() ok. Duration={0}", sw.ElapsedMilliseconds);
            sw.Restart();

            po_index.Build();

            sw.Stop();
            Console.WriteLine("po_index Build index ok. Duration={0}", sw.ElapsedMilliseconds);
            sw.Restart();

            Start();
        }