#pragma once

#include <mapreduce/yt/interface/client.h>
#include <wmconsole/version3/protos/links.pb.h>

namespace NWebmaster {

    struct TMapLinks : public NYT::IMapper<NYT::TTableReader<NYT::TNode>, NYT::TTableWriter<NYT::TNode>> {
        void Do(TReader *reader, TWriter *writer) override;

        void PackQueryData(const TString &date, const TString &hostId,
                           const proto::links::RawLinkInfo &message, TStringBuilder &data);
    };

} //namespace NWebmaster
