mirror of https://github.com/milvus-io/milvus.git
Remove deprecated API get_offset_opt (#10150)
Signed-off-by: yudong.cai <yudong.cai@zilliz.com>pull/10159/head
parent
693220fe0a
commit
39bf58d8cb
|
@ -10,14 +10,16 @@
|
|||
// or implied. See the License for the specific language governing permissions and limitations under the License
|
||||
|
||||
#pragma once
|
||||
#include "FieldMeta.h"
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <memory>
|
||||
#include <pb/schema.pb.h>
|
||||
#include <optional>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "FieldMeta.h"
|
||||
#include "pb/schema.pb.h"
|
||||
|
||||
namespace milvus {
|
||||
|
||||
|
@ -109,15 +111,6 @@ class Schema {
|
|||
return sizeof_infos_;
|
||||
}
|
||||
|
||||
[[deprecated]] std::optional<FieldOffset>
|
||||
get_offset_opt(const FieldName& field_name) const {
|
||||
if (!name_offsets_.count(field_name)) {
|
||||
return std::nullopt;
|
||||
} else {
|
||||
return name_offsets_.at(field_name);
|
||||
}
|
||||
}
|
||||
|
||||
FieldOffset
|
||||
get_offset(const FieldName& field_name) const {
|
||||
Assert(name_offsets_.count(field_name));
|
||||
|
|
Loading…
Reference in New Issue