Files
oceanbase/unittest/storage/mock_ft_parser.h
Tyshawn 062c64f85f [FEAT MERGE] Full-Text Search Index Phase Ⅳ
Co-authored-by: SuperYoko <lipeng.yk@gmail.com>
Co-authored-by: wz-WillZheng <18701736737@163.com>
Co-authored-by: hy-guo <fqboyg@gmail.com>
2025-02-09 06:15:16 +00:00

57 lines
1.5 KiB
C++

/**
* Copyright (c) 2024 OceanBase
* OceanBase is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PubL v2 for more details.
*/
#ifndef MOCK_FT_PARSER_H_
#define MOCK_FT_PARSER_H_
#include "plugin/interface/ob_plugin_ftparser_intf.h"
namespace oceanbase
{
namespace storage
{
class ObMockFTParserDesc final : public plugin::ObIFTParserDesc
{
public:
ObMockFTParserDesc() = default;
virtual ~ObMockFTParserDesc() = default;
virtual int init(plugin::ObPluginParam *param) override;
virtual int deinit(plugin::ObPluginParam *param) override;
virtual int segment(plugin::ObFTParserParam *param, plugin::ObITokenIterator *&iter) const override;
};
int ObMockFTParserDesc::init(plugin::ObPluginParam *param)
{
UNUSEDx(param);
return OB_SUCCESS;
}
int ObMockFTParserDesc::deinit(plugin::ObPluginParam *param)
{
UNUSED(param);
return OB_SUCCESS;
}
int ObMockFTParserDesc::segment(plugin::ObFTParserParam *param, plugin::ObITokenIterator *&iter) const
{
UNUSED(param);
return OB_SUCCESS;
}
static ObMockFTParserDesc mock_ft_parser;
} // end storage
} // end oceanbase
#endif // MOCK_FT_PARSER_H_