@ -224,17 +224,12 @@ struct ColumnFamilyOptions {
CompressionType compression ;
CompressionType compression ;
// Different levels can have different compression policies. There
// Different levels can have different compression policies. There
// are cases where most lower levels would like to quick compression
// are cases where most lower levels would like to use quick compression
// algorithm while the higher levels (which have more data) use
// algorithms while the higher levels (which have more data) use
// compression algorithms that have better compression but could
// compression algorithms that have better compression but could
// be slower. This array, if non nullptr, should have an entry for
// be slower. This array, if non-empty, should have an entry for
// each level of the database. This array, if non nullptr, overides the
// each level of the database; these override the value specified in
// value specified in the previous field 'compression'. The caller is
// the previous field 'compression'.
// reponsible for allocating memory and initializing the values in it
// before invoking Open(). The caller is responsible for freeing this
// array and it could be freed anytime after the return from Open().
// This could have been a std::vector but that makes the equivalent
// java/C api hard to construct.
std : : vector < CompressionType > compression_per_level ;
std : : vector < CompressionType > compression_per_level ;
// different options for compression algorithms
// different options for compression algorithms