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 } }
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 }
public List <SaxData> getbuffer() { return(TermBuffer.getbuffer(NBuf)); }
public void ForceFlushBuffer() { TermBuffer.ForceFlushBuffer(NBuf); }
public void ForceFlushBuffers() { TermBuffer.FinishInsertions(); // Flush TermBuffer nodes }