blob: bf4855fef3d575a03c27d1c55486c38e26e4904b (
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
26
27
28
|
#pragma once
#include "public.h"
#include <yt/yt/client/hydra/public.h>
#include <yt/yt/client/object_client/public.h>
#include <yt/yt/core/concurrency/public.h>
namespace NYT::NApi {
////////////////////////////////////////////////////////////////////////////////
struct IFileReader
: public NConcurrency::IAsyncZeroCopyInputStream
{
//! Returns ID of file node.
virtual NObjectClient::TObjectId GetId() const = 0;
//! Returns revision of file node.
virtual NHydra::TRevision GetRevision() const = 0;
};
DEFINE_REFCOUNTED_TYPE(IFileReader)
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT::NApi
|