22 #ifndef HYPERTABLE_CELLSTORETRAILERV0_H
23 #define HYPERTABLE_CELLSTORETRAILERV0_H
36 virtual size_t size() {
return 56; }
39 virtual void display(std::ostream &os);
64 if (prop ==
"version")
return version;
71 else if (prop ==
"filter_false_positive_prob")
73 else if (prop ==
"blocksize")
return blocksize;
74 else if (prop ==
"revision")
return revision;
75 else if (prop ==
"table_id")
return table_id;
80 else return boost::any();
87 #endif // HYPERTABLE_CELLSTORETRAILERV0_H
Abstract base class for cell store trailer.
virtual void serialize(uint8_t *buf)
Serializes this trailer to the given buffer;.
std::string String
A String is simply a typedef to std::string.
float filter_false_positive_prob
virtual size_t size()
Returns the serialized size of the trailer.
virtual void display_multiline(std::ostream &os)
Prints the trailer, one member per line, to the given ostream.
uint32_t compression_ratio_i32
uint32_t filter_false_positive_prob_i32
virtual void clear()
Clears the contents of this trailer;.
uint16_t compression_type
uint32_t var_index_offset
uint32_t fix_index_offset
virtual void display(std::ostream &os)
Prints the trailer to the given ostream.
virtual ~CellStoreTrailerV0()
uint32_t num_filter_items
uint32_t table_generation
virtual void deserialize(const uint8_t *buf)
Deserializes the trailer from the given buffer.