refactor: Move a few low-level DataStream types to DataStreamCore
So the lex/yacc generators can reference them
This commit is contained in:
1 parent
d1f5ae86fd
commit
ac1ede5986
10 files changed
+6
-30
No files matched your search
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Data;
|
||||
|
||||
using BCG.Utilities;
|
||||
|
||||
|
||||
/* this class reprsents a table stream for use with CppDataStreams. It does not hold on to the last value fired.
|
||||
* This way, the last value is purged from managed memory and only the slimmer, sexier Cpp implementation of the row remains.
|
||||
*
|
||||
*/
|
||||
namespace BCG
|
||||
{
|
||||
public class LightTableStream : TableStream
|
||||
{
|
||||
public LightTableStream(string tableName)
|
||||
:
|
||||
base(tableName, null, null)
|
||||
{
|
||||
}
|
||||
|
||||
public LightTableStream(string tableName, ViewStreamDatabase db)
|
||||
:
|
||||
base(tableName, db, null)
|
||||
{}
|
||||
|
||||
public LightTableStream(string tableName, string colExp)
|
||||
:
|
||||
base(tableName,
|
||||
null,
|
||||
colExp)
|
||||
{}
|
||||
|
||||
|
||||
public LightTableStream(string ttableName, ViewStreamDatabase db, string colExp) :
|
||||
base(ttableName,db,colExp)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
protected override void myHandleUpdates(IBlueRowCollection newRows, IBlueRowCollection addedRows, IBlueRowCollection deletedRows)
|
||||
{
|
||||
|
||||
base.myHandleUpdates(newRows, addedRows, deletedRows);
|
||||
//once you've fired the rows, delete them becuase we don't want to hold onto them in memory
|
||||
myLastValue = null;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user