27 #ifndef Hypertable_Lib_BlockCompressionCodec_h
28 #define Hypertable_Lib_BlockCompressionCodec_h
63 typedef std::vector<String>
Args;
94 for (
const auto &arg : args)
115 #endif // Hypertable_Lib_BlockCompressionCodec_h
std::shared_ptr< BlockCompressionCodec > BlockCompressionCodecPtr
Smart pointer to BlockCompressionCodec.
virtual void set_args(const Args &args)
Sets arguments to control compression behavior.
Type
Enumeration for compression type.
A dynamic, resizable and reference counted memory buffer.
std::vector< String > Args
Compression codec argument vector.
Bentley-McIlroy large common substring compression.
Unknown compression type.
Limit of compression types.
virtual int get_type()=0
Returns compression type enum.
static const char * get_compressor_name(uint16_t algo)
Returns string mnemonic for compression type.
#define HT_THROWF(_code_, _fmt_,...)
virtual void deflate(const DynamicBuffer &input, DynamicBuffer &output, BlockHeader &header, size_t reserve=0)=0
Compresses a buffer.
A String class based on std::string.
virtual void inflate(const DynamicBuffer &input, DynamicBuffer &output, BlockHeader &header)=0
Decompresses a buffer.
Error codes, Exception handling, error logging.
Abstract base class for block compression codecs.
virtual ~BlockCompressionCodec()
Destructor.