mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Fixed bad code after merge [#CLICKHOUSE-3].
This commit is contained in:
parent
320b1e635b
commit
a38bf1cbb3
@ -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<typename CentroidsType>
|
||||
template <typename CentroidsType>
|
||||
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<const ColumnArray *>(centroids_array_untyped);
|
||||
|
||||
@ -98,9 +92,9 @@ public:
|
||||
|
||||
template <typename InputType>
|
||||
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<InputType, UInt64>(in_untyped, out_untyped, operation);
|
||||
|
Loading…
Reference in New Issue
Block a user