Logo
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 num_primary_file = 0;
21  unsigned int n_lblock = 0;
22  unsigned int type;
23  unsigned int replica = 0;
24  bool reducer_output = false;
25  uint32_t job_id = 0;
26  int uploading = 1;
27  bool is_input = false;
28  uint64_t intended_block_size = 0;
29 
30  std::vector<BlockMetadata> blocks_metadata;
31 };
32 
33 }
34 }
35 
Definition: block_node.cc:12
Definition: fileinfo.hh:10
int uploading
Definition: fileinfo.hh:26
unsigned int num_block
Definition: fileinfo.hh:19
std::string get_type() const override
Definition: fileinfo.cc:5
bool reducer_output
Definition: fileinfo.hh:24
std::vector< BlockMetadata > blocks_metadata
Definition: fileinfo.hh:30
uint64_t size
Definition: fileinfo.hh:18
std::string name
Definition: fileinfo.hh:16
bool is_input
Definition: fileinfo.hh:27
uint32_t job_id
Definition: fileinfo.hh:25
unsigned int replica
Definition: fileinfo.hh:23
uint32_t hash_key
Definition: fileinfo.hh:17
unsigned int n_lblock
Definition: fileinfo.hh:21
unsigned int num_primary_file
Definition: fileinfo.hh:20
unsigned int type
Definition: fileinfo.hh:22
uint64_t intended_block_size
Definition: fileinfo.hh:28
Definition: message.hh:15