From a38bf1cbb321ce4b1414088e2f57cfc5f57ee3d2 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 3 Jul 2017 17:16:20 +0300 Subject: [PATCH] Fixed bad code after merge [#CLICKHOUSE-3]. --- dbms/src/Functions/FunctionsFindCluster.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/dbms/src/Functions/FunctionsFindCluster.h b/dbms/src/Functions/FunctionsFindCluster.h index 60d55665132..e1fab5d6576 100644 --- a/dbms/src/Functions/FunctionsFindCluster.h +++ b/dbms/src/Functions/FunctionsFindCluster.h @@ -45,17 +45,11 @@ enum ClusterOperation /// lacks support of them for simplicity. Date, DateTime and Strings (eg. with the /// Levenshtein distance) could be theoretically supported, as well as custom distance /// functions (eg. Hamming distance) using Clickhouse lambdas. -template +template class Centroids { public: - Centroids() {} - - Centroids(const Centroids & c): centroids(c.centroids) {} - - virtual ~Centroids() {} - - bool fill (const IColumn* centroids_array_untyped) + bool fill(const IColumn* centroids_array_untyped) { const ColumnArray * centroids_array = typeid_cast(centroids_array_untyped); @@ -98,9 +92,9 @@ public: template bool findCluster( - const IColumn* in_untyped, - IColumn* out_untyped, - ClusterOperation operation) + const IColumn* in_untyped, + IColumn* out_untyped, + ClusterOperation operation) { if (operation == ClusterOperation::FindClusterIndex) return findClusterTyped(in_untyped, out_untyped, operation);