Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
metadata.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <vector>
5 #include <stdint.h>
6 
7 #include "block_metadata.hh"
8 
9 namespace velox {
10 namespace model {
11 
12 class metadata {
13  public:
14  metadata() = default;
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_chunks = 0;
21  unsigned int num_static_blocks = 0;
22  unsigned int type;
23  unsigned int replica;
24  bool has_block_data = true;
25 
26  std::vector<std::string> blocks;
27  std::vector<uint32_t> hash_keys;
28  std::vector<uint64_t> block_size;
29  std::vector<block_metadata> block_data;
30 };
31 
32 }
33 }
unsigned int num_chunks
Definition: metadata.hh:20
Definition: metadata.hh:12
unsigned int num_block
Definition: metadata.hh:19
bool has_block_data
Definition: metadata.hh:24
unsigned int replica
Definition: metadata.hh:23
std::vector< uint32_t > hash_keys
Definition: metadata.hh:27
std::vector< uint64_t > block_size
Definition: metadata.hh:28
uint64_t size
Definition: metadata.hh:18
std::string name
Definition: metadata.hh:16
unsigned int num_static_blocks
Definition: metadata.hh:21
std::vector< std::string > blocks
Definition: metadata.hh:26
uint32_t hash_key
Definition: metadata.hh:17
unsigned int type
Definition: metadata.hh:22
std::vector< block_metadata > block_data
Definition: metadata.hh:29