aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/attribute/distance_metric_utils.h
blob: 68ba5aa6c23cddb0513b362f3b2baf09f6924275 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

#include <vespa/searchcommon/attribute/distance_metric.h>
#include <vespa/vespalib/stllike/string.h>

namespace search::attribute {

class DistanceMetricUtils {
public:
    static vespalib::string to_string(DistanceMetric metric);
    static DistanceMetric to_distance_metric(const vespalib::string& metric);
};

}