|
@@ -205,13 +205,14 @@ protected:
|
|
|
public:
|
|
|
IMPLEMENT_IINTERFACE_USING(CSimpleInterface);
|
|
|
|
|
|
- CSpillableStreamBase(CActivityBase &_activity, CThorSpillableRowArray &inRows, IRowInterfaces *_rowIf, bool _preserveNulls, unsigned _spillPriorirty)
|
|
|
- : activity(_activity), rowIf(_rowIf), rows(_activity, _rowIf, _preserveNulls), preserveNulls(_preserveNulls), spillPriority(_spillPriorirty)
|
|
|
+ CSpillableStreamBase(CActivityBase &_activity, CThorSpillableRowArray &inRows, IRowInterfaces *_rowIf, bool _preserveNulls, unsigned _spillPriority)
|
|
|
+ : activity(_activity), rowIf(_rowIf), rows(_activity, _rowIf, _preserveNulls), preserveNulls(_preserveNulls), spillPriority(_spillPriority)
|
|
|
{
|
|
|
assertex(inRows.isFlushed());
|
|
|
rows.swap(inRows);
|
|
|
useCompression = false;
|
|
|
mmRegistered = false;
|
|
|
+ ownsRows = false;
|
|
|
}
|
|
|
~CSpillableStreamBase()
|
|
|
{
|
|
@@ -225,6 +226,10 @@ public:
|
|
|
{
|
|
|
return spillPriority;
|
|
|
}
|
|
|
+ virtual unsigned getActivityId() const
|
|
|
+ {
|
|
|
+ return activity.queryActivityId();
|
|
|
+ }
|
|
|
virtual bool freeBufferedRows(bool critical)
|
|
|
{
|
|
|
if (spillFile) // i.e. if spilt already. NB: this is thread-safe, as 'spillFile' only set by spillRows() call below and can't be called on multiple threads concurrently.
|
|
@@ -1755,6 +1760,10 @@ public:
|
|
|
{
|
|
|
return spillPriority;
|
|
|
}
|
|
|
+ virtual unsigned getActivityId() const
|
|
|
+ {
|
|
|
+ return activity.queryActivityId();
|
|
|
+ }
|
|
|
virtual bool freeBufferedRows(bool critical)
|
|
|
{
|
|
|
if (!spillingEnabled())
|
|
@@ -1910,12 +1919,6 @@ IThorRowCollector *createThorRowCollector(CActivityBase &activity, IRowInterface
|
|
|
return collector.getClear();
|
|
|
}
|
|
|
|
|
|
-IThorRowCollector *createThorRowCollector(CActivityBase &activity, ICompare *iCompare, StableSortFlag stableSort, RowCollectorSpillFlags diskMemMix, unsigned spillPriority, bool preserveGrouping)
|
|
|
-{
|
|
|
- return createThorRowCollector(activity, &activity, iCompare, stableSort, diskMemMix, spillPriority, preserveGrouping);
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
void setThorInABox(unsigned num)
|
|
|
{
|
|
|
}
|