summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client/operation_helpers.h
blob: d6677ee7b82bde1c3270b8b7f7c6696ee7eb7e47 (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
24
25
#pragma once

#include "fwd.h"

#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, const TClientPtr& client);

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

} // namespace NYT::NDetail