コード例 #1
0
ファイル: TermEntry.cs プロジェクト: patrikpolyak/isax2
 public void InsertToBuffer(SaxData dr)
 {
     numTimeSeries++;
     if (NBuf == -1)                                  // Check if there is a buffer attached to this node
     {
         NBuf = TermBuffer.CreateNewBuffer(dr, this); // Create one and return the ID
     }
     else
     {
         TermBuffer.InsertInBuffer(dr, NBuf);   // If it exists insert ts in the buffer
     }
 }
コード例 #2
0
        private static void InitalizeGlobalSettings()
        {
            ComputerInfo computerInfo = new ComputerInfo();

            Console.WriteLine("ComputerInfo:");
            Console.WriteLine("-------------");
            Console.WriteLine("{0,-30}:\t{1}", "Platform", computerInfo.OSPlatform);
            //Console.WriteLine("{0,-30}:\t{1}", "TotalPhysicalMemory", computerInfo.TotalPhysicalMemory);
            //Console.WriteLine("{0,-30}:\t{1}", "AvailablePhysicalMemory", computerInfo.AvailablePhysicalMemory);
            //Console.WriteLine("{0,-30}:\t{1}", "TotalVirtualMemory", computerInfo.TotalVirtualMemory);
            //Console.WriteLine("{0,-30}:\t{1}", "AvailableVirtualMemory", computerInfo.AvailableVirtualMemory);
            Console.WriteLine();
            Console.WriteLine("Current Settings:");
            Console.WriteLine("-----------------");
            Console.WriteLine("{0,21}:\t{1}", "BaseCardinality", BASE_CARDINALITY);
            Console.WriteLine("{0,21}:\t{1}", "TimeSeriesLength", TIMESERIES_LENGTH);
            Console.WriteLine("{0,21}:\t{1}", "IndexEntries", NUM_TIMESERIES);
            Console.WriteLine("{0,21}:\t{1}", "TerminalNodeSize(th)", MAX_ENTRIES);
            Console.WriteLine("{0,21}:\t{1}", "WordLen", WORDLENGTH);
            Console.WriteLine("{0,21}:\t{1}", "Seed", SEED);
            Console.WriteLine("{0,21}:\t{1}", "Flush Par", FLUSHPAR);
            Console.WriteLine("{0,21}:\t{1}", "New Split Policy", NEWSPLITPOLICY);
            Console.WriteLine();
            Console.WriteLine();

            // index settings
            Globals.Initalize(
                TIMESERIES_LENGTH,
                WORDLENGTH,
                MAX_CARDINALITY,
                BASE_CARDINALITY,
                ROOT_DIR,
                MAX_ENTRIES,
                FLUSHPAR,
                NEWSPLITPOLICY);
            TermBuffer.Initialize(MAX_ENTRIES); // must follow global
        }
コード例 #3
0
ファイル: TermEntry.cs プロジェクト: patrikpolyak/isax2
 public List <SaxData> getbuffer()
 {
     return(TermBuffer.getbuffer(NBuf));
 }
コード例 #4
0
ファイル: TermEntry.cs プロジェクト: patrikpolyak/isax2
 public void ForceFlushBuffer()
 {
     TermBuffer.ForceFlushBuffer(NBuf);
 }
コード例 #5
0
 public void ForceFlushBuffers()
 {
     TermBuffer.FinishInsertions(); // Flush TermBuffer nodes
 }