summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client/operation_helpers.h
blob: f7d25300b1a145a85159267129c8e6a2ef3d5dfe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <yt/cpp/mapreduce/common/fwd.h>
#include <yt/cpp/mapreduce/interface/fwd.h>

#include <yt/cpp/mapreduce/http/fwd.h>

namespace NYT::NDetail {

////////////////////////////////////////////////////////////////////////////////

ui64 RoundUpFileSize(ui64 size);

bool UseLocalModeOptimization(
    const IRawClientPtr& rawClient,
    const TClientContext& context,
    const IClientRetryPolicyPtr& clientRetryPolicy);

TString GetOperationWebInterfaceUrl(TStringBuf serverName, TOperationId operationId);

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT::NDetail