Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
fileinfo.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "message.hh"
4 #include "../common/blockmetadata.hh"
5 #include <vector>
6 
7 namespace eclipse {
8 namespace messages {
9 
10 struct FileInfo: public Message {
11  FileInfo() = default;
12  ~FileInfo() = default;
13 
14  std::string get_type() const override;
15 
16  std::string name;
17  uint32_t hash_key = 0;
18  uint64_t size = 0;
19  unsigned int num_block = 0;
20  unsigned int n_lblock = 0;
21  unsigned int type;
22  unsigned int replica = 0;
23  bool reducer_output = false;
24  uint32_t job_id = 0;
25  int uploading = 1;
26  bool is_input = false;
27  uint64_t intended_block_size = 0;
28 
29  std::vector<BlockMetadata> blocks_metadata;
30 };
31 
32 }
33 }
34 
Definition: fileinfo.hh:10
uint32_t job_id
Definition: fileinfo.hh:24
unsigned int type
Definition: fileinfo.hh:21
bool reducer_output
Definition: fileinfo.hh:23
std::string get_type() const override
Definition: fileinfo.cc:5
unsigned int num_block
Definition: fileinfo.hh:19
uint64_t intended_block_size
Definition: fileinfo.hh:27
uint32_t hash_key
Definition: fileinfo.hh:17
std::string name
Definition: fileinfo.hh:16
Definition: message.hh:15
uint64_t size
Definition: fileinfo.hh:18
std::vector< BlockMetadata > blocks_metadata
Definition: fileinfo.hh:29
int uploading
Definition: fileinfo.hh:25
bool is_input
Definition: fileinfo.hh:26
unsigned int n_lblock
Definition: fileinfo.hh:20
unsigned int replica
Definition: fileinfo.hh:22