mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-30 07:25:37 +08:00
* Changed `RangeExpr` proto to `UnaryRangeExpr` & `BinaryRangeExpr` Several unit test unpassed. Signed-off-by: xaxys <tpnnghd@163.com> * Fix bugs to pass unit test. Fix format. Signed-off-by: xaxys <tpnnghd@163.com> * Remove debug information. Signed-off-by: xaxys <tpnnghd@163.com> * Fix format. Remove debug information. Unify variable name. Add error information. Remove `CompareExpr` test in `test_c_api.cpp`. Signed-off-by: xaxys <tpnnghd@163.com> * Fix code format. Signed-off-by: xaxys <tpnnghd@163.com> * Update `Plan.cpp`. Signed-off-by: xaxys <tpnnghd@163.com>
35 lines
1.0 KiB
C++
35 lines
1.0 KiB
C++
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
|
|
// with the License. You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
// or implied. See the License for the specific language governing permissions and limitations under the License
|
|
|
|
#pragma once
|
|
#include "Expr.h"
|
|
#include <tuple>
|
|
#include <vector>
|
|
#include <boost/container/vector.hpp>
|
|
|
|
namespace milvus::query {
|
|
template <typename T>
|
|
struct TermExprImpl : TermExpr {
|
|
boost::container::vector<T> terms_;
|
|
};
|
|
|
|
template <typename T>
|
|
struct UnaryRangeExprImpl : UnaryRangeExpr {
|
|
T value_;
|
|
};
|
|
|
|
template <typename T>
|
|
struct BinaryRangeExprImpl : BinaryRangeExpr {
|
|
T lower_value_;
|
|
T upper_value_;
|
|
};
|
|
} // namespace milvus::query
|