Removed unused method that is unneeded after removing compiled aggregator

This commit is contained in:
Alexey Milovidov 2019-12-24 12:06:44 +03:00
parent fee9fda34c
commit 8bd22bf190
40 changed files with 1 additions and 133 deletions

View File

@ -84,8 +84,6 @@ public:
{ {
this->data(place).result.insertResultInto(to); this->data(place).result.insertResultInto(to);
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
} }

View File

@ -130,8 +130,6 @@ public:
} }
AggregateFunctionPtr getNestedFunction() const { return nested_func; } AggregateFunctionPtr getNestedFunction() const { return nested_func; }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
} }

View File

@ -87,8 +87,6 @@ public:
column.getData().push_back(this->data(place).template result<ResultType>()); column.getData().push_back(this->data(place).template result<ResultType>());
} }
const char * getHeaderFilePath() const override { return __FILE__; }
protected: protected:
UInt32 scale; UInt32 scale;
}; };

View File

@ -78,8 +78,6 @@ public:
{ {
assert_cast<ColumnVector<T> &>(to).getData().push_back(this->data(place).value); assert_cast<ColumnVector<T> &>(to).getData().push_back(this->data(place).value);
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };

View File

@ -154,11 +154,6 @@ public:
{ {
assert_cast<ColumnFloat64 &>(to).getData().push_back(getBoundingRatio(data(place))); assert_cast<ColumnFloat64 &>(to).getData().push_back(getBoundingRatio(data(place)));
} }
const char * getHeaderFilePath() const override
{
return __FILE__;
}
}; };
} }

View File

@ -33,11 +33,6 @@ public:
return "categoricalInformationValue"; return "categoricalInformationValue";
} }
const char * getHeaderFilePath() const override
{
return __FILE__;
}
void create(AggregateDataPtr place) const override void create(AggregateDataPtr place) const override
{ {
memset(place, 0, sizeOfData()); memset(place, 0, sizeOfData());

View File

@ -63,8 +63,6 @@ public:
assert_cast<ColumnUInt64 &>(to).getData().push_back(data(place).count); assert_cast<ColumnUInt64 &>(to).getData().push_back(data(place).count);
} }
const char * getHeaderFilePath() const override { return __FILE__; }
/// Reset the state to specified value. This function is not the part of common interface. /// Reset the state to specified value. This function is not the part of common interface.
void set(AggregateDataPtr place, UInt64 new_count) void set(AggregateDataPtr place, UInt64 new_count)
{ {
@ -115,8 +113,6 @@ public:
{ {
assert_cast<ColumnUInt64 &>(to).getData().push_back(data(place).count); assert_cast<ColumnUInt64 &>(to).getData().push_back(data(place).count);
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
} }

View File

@ -145,8 +145,6 @@ public:
auto & column = assert_cast<ColumnVector<Float64> &>(to); auto & column = assert_cast<ColumnVector<Float64> &>(to);
column.getData().push_back(this->data(place).get()); column.getData().push_back(this->data(place).get());
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
} }

View File

@ -247,8 +247,6 @@ public:
{ {
return true; return true;
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };

View File

@ -136,8 +136,6 @@ public:
{ {
return true; return true;
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
@ -400,8 +398,6 @@ public:
{ {
return true; return true;
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
#undef AGGREGATE_FUNCTION_GROUP_ARRAY_MAX_ARRAY_SIZE #undef AGGREGATE_FUNCTION_GROUP_ARRAY_MAX_ARRAY_SIZE

View File

@ -203,8 +203,6 @@ public:
to_offsets.push_back(to_offsets.back() + result_array_size); to_offsets.push_back(to_offsets.back() + result_array_size);
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };

View File

@ -192,8 +192,6 @@ public:
{ {
return true; return true;
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
#undef AGGREGATE_FUNCTION_MOVING_MAX_ARRAY_SIZE #undef AGGREGATE_FUNCTION_MOVING_MAX_ARRAY_SIZE

View File

@ -52,8 +52,6 @@ public:
{ {
assert_cast<ColumnVector<T> &>(to).getData().push_back(this->data(place).rbs.size()); assert_cast<ColumnVector<T> &>(to).getData().push_back(this->data(place).rbs.size());
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
@ -119,8 +117,6 @@ public:
{ {
assert_cast<ColumnVector<T> &>(to).getData().push_back(this->data(place).rbs.size()); assert_cast<ColumnVector<T> &>(to).getData().push_back(this->data(place).rbs.size());
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
template <typename Data> template <typename Data>

View File

@ -118,8 +118,6 @@ public:
for (auto it = set.begin(); it != set.end(); ++it, ++i) for (auto it = set.begin(); it != set.end(); ++it, ++i)
data_to[old_size + i] = it->getValue(); data_to[old_size + i] = it->getValue();
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
@ -255,8 +253,6 @@ public:
deserializeAndInsert(elem.getValue(), data_to); deserializeAndInsert(elem.getValue(), data_to);
} }
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
template <> template <>

View File

@ -369,8 +369,6 @@ public:
offsets_to.push_back(to_tuple.size()); offsets_to.push_back(to_tuple.size());
} }
const char * getHeaderFilePath() const override { return __FILE__; }
String getName() const override { return "histogram"; } String getName() const override { return "histogram"; }
}; };

View File

@ -109,8 +109,6 @@ public:
{ {
return nested_func->isState(); return nested_func->isState();
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
} }

View File

@ -394,8 +394,6 @@ public:
this->data(place).returnWeights(to); this->data(place).returnWeights(to);
} }
const char * getHeaderFilePath() const override { return __FILE__; }
private: private:
UInt64 param_num; UInt64 param_num;
Float64 learning_rate; Float64 learning_rate;

View File

@ -162,11 +162,6 @@ public:
result_column.push_back(position_of_max_intersections); result_column.push_back(position_of_max_intersections);
} }
} }
const char * getHeaderFilePath() const override
{
return __FILE__;
}
}; };
} }

View File

@ -98,8 +98,6 @@ public:
{ {
return nested_func->allocatesMemoryInArena(); return nested_func->allocatesMemoryInArena();
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
} }

View File

@ -731,8 +731,6 @@ public:
{ {
this->data(place).insertResultInto(to); this->data(place).insertResultInto(to);
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
} }

View File

@ -71,8 +71,6 @@ public:
{ {
to.insertDefault(); to.insertDefault();
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
} }

View File

@ -176,8 +176,6 @@ public:
{ {
return nested_function->isState(); return nested_function->isState();
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };

View File

@ -49,11 +49,6 @@ public:
return nested_function->getName() + "OrDefault"; return nested_function->getName() + "OrDefault";
} }
const char * getHeaderFilePath() const override
{
return __FILE__;
}
bool isState() const override bool isState() const override
{ {
return nested_function->isState(); return nested_function->isState();

View File

@ -179,8 +179,6 @@ public:
} }
} }
const char * getHeaderFilePath() const override { return __FILE__; }
static void assertSecondArg(const DataTypes & types) static void assertSecondArg(const DataTypes & types)
{ {
if constexpr (has_second_arg) if constexpr (has_second_arg)

View File

@ -72,11 +72,6 @@ public:
return nested_function->getName() + "Resample"; return nested_function->getName() + "Resample";
} }
const char * getHeaderFilePath() const override
{
return __FILE__;
}
bool isState() const override bool isState() const override
{ {
return nested_function->isState(); return nested_function->isState();

View File

@ -144,11 +144,6 @@ public:
offsets_to.push_back(current_offset); offsets_to.push_back(current_offset);
} }
const char * getHeaderFilePath() const override
{
return __FILE__;
}
}; };
} }

View File

@ -180,8 +180,6 @@ public:
this->data(place).deserialize(buf); this->data(place).deserialize(buf);
} }
const char * getHeaderFilePath() const override { return __FILE__; }
private: private:
enum class PatternActionType enum class PatternActionType
{ {

View File

@ -109,11 +109,6 @@ public:
return "simpleLinearRegression"; return "simpleLinearRegression";
} }
const char * getHeaderFilePath() const override
{
return __FILE__;
}
void add( void add(
AggregateDataPtr place, AggregateDataPtr place,
const IColumn ** columns, const IColumn ** columns,

View File

@ -94,8 +94,6 @@ public:
} }
AggregateFunctionPtr getNestedFunction() const { return nested_func; } AggregateFunctionPtr getNestedFunction() const { return nested_func; }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
} }

View File

@ -147,8 +147,6 @@ public:
{ {
this->data(place).publish(to); this->data(place).publish(to);
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
/** Implementing the varSamp function. /** Implementing the varSamp function.
@ -401,8 +399,6 @@ public:
{ {
this->data(place).publish(to); this->data(place).publish(to);
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
/** Implementing the covarSamp function. /** Implementing the covarSamp function.

View File

@ -552,8 +552,6 @@ public:
} }
} }
const char * getHeaderFilePath() const override { return __FILE__; }
private: private:
UInt32 src_scale; UInt32 src_scale;
}; };

View File

@ -147,8 +147,6 @@ public:
column.getData().push_back(this->data(place).get()); column.getData().push_back(this->data(place).get());
} }
const char * getHeaderFilePath() const override { return __FILE__; }
private: private:
UInt32 scale; UInt32 scale;
}; };

View File

@ -261,8 +261,6 @@ public:
} }
} }
const char * getHeaderFilePath() const override { return __FILE__; }
bool keepKey(const T & key) const { return static_cast<const Derived &>(*this).keepKey(key); } bool keepKey(const T & key) const { return static_cast<const Derived &>(*this).keepKey(key); }
}; };

View File

@ -281,7 +281,5 @@ public:
} }
bool allocatesMemoryInArena() const override { return true; } bool allocatesMemoryInArena() const override { return true; }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
} }

View File

@ -103,8 +103,6 @@ public:
for (auto it = result_vec.begin(); it != result_vec.end(); ++it, ++i) for (auto it = result_vec.begin(); it != result_vec.end(); ++it, ++i)
data_to[old_size + i] = it->key; data_to[old_size + i] = it->key;
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
@ -230,8 +228,6 @@ public:
data_to.deserializeAndInsertFromArena(elem.key.data); data_to.deserializeAndInsertFromArena(elem.key.data);
} }
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
} }

View File

@ -244,8 +244,6 @@ public:
{ {
assert_cast<ColumnUInt64 &>(to).getData().push_back(this->data(place).set.size()); assert_cast<ColumnUInt64 &>(to).getData().push_back(this->data(place).set.size());
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
@ -300,8 +298,6 @@ public:
{ {
assert_cast<ColumnUInt64 &>(to).getData().push_back(this->data(place).set.size()); assert_cast<ColumnUInt64 &>(to).getData().push_back(this->data(place).set.size());
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
} }

View File

@ -171,11 +171,6 @@ public:
{ {
assert_cast<ColumnUInt64 &>(to).getData().push_back(this->data(place).set.size()); assert_cast<ColumnUInt64 &>(to).getData().push_back(this->data(place).set.size());
} }
const char * getHeaderFilePath() const override
{
return __FILE__;
}
}; };
/** For multiple arguments. To compute, hashes them. /** For multiple arguments. To compute, hashes them.
@ -238,11 +233,6 @@ public:
{ {
assert_cast<ColumnUInt64 &>(to).getData().push_back(this->data(place).set.size()); assert_cast<ColumnUInt64 &>(to).getData().push_back(this->data(place).set.size());
} }
const char * getHeaderFilePath() const override
{
return __FILE__;
}
}; };
} }

View File

@ -184,8 +184,6 @@ public:
{ {
assert_cast<ColumnUInt64 &>(to).getData().push_back(this->data(place).size()); assert_cast<ColumnUInt64 &>(to).getData().push_back(this->data(place).size());
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };
@ -248,8 +246,6 @@ public:
{ {
assert_cast<ColumnUInt64 &>(to).getData().push_back(this->data(place).size()); assert_cast<ColumnUInt64 &>(to).getData().push_back(this->data(place).size());
} }
const char * getHeaderFilePath() const override { return __FILE__; }
}; };

View File

@ -245,11 +245,6 @@ public:
{ {
assert_cast<ColumnUInt8 &>(to).getData().push_back(getEventLevel(this->data(place))); assert_cast<ColumnUInt8 &>(to).getData().push_back(getEventLevel(this->data(place)));
} }
const char * getHeaderFilePath() const override
{
return __FILE__;
}
}; };
} }

View File

@ -148,12 +148,6 @@ public:
addBatchArray(size_t batch_size, AggregateDataPtr * places, size_t place_offset, const IColumn ** columns, const UInt64 * offsets, Arena * arena) addBatchArray(size_t batch_size, AggregateDataPtr * places, size_t place_offset, const IColumn ** columns, const UInt64 * offsets, Arena * arena)
const = 0; const = 0;
/** This is used for runtime code generation to determine, which header files to include in generated source.
* Always implement it as
* const char * getHeaderFilePath() const override { return __FILE__; }
*/
virtual const char * getHeaderFilePath() const = 0;
const DataTypes & getArgumentTypes() const { return argument_types; } const DataTypes & getArgumentTypes() const { return argument_types; }
const Array & getParameters() const { return parameters; } const Array & getParameters() const { return parameters; }