#pragma once

#include <saas/rtyserver/indexer_core/merger_interfaces.h>
#include <saas/rtyserver/model/component.h>

#include <dj/lib/profile_key/profile_types.h>
#include <dj/lib/shard2/proto/shard_builder_config.pb.h>
#include <dj/lib/shard2/rty/index_builder.h>

namespace NRTYServer {
    class TDjMerger {
    public:
        explicit TDjMerger(const NDJ::NShard::TSearchIndexBuilder* builder);

        void Merge(const TMergeContext& context) const;

    private:
        const NDJ::NShard::TSearchIndexBuilder* Builder;
    };
}
