public static ColumnFamilyCompression FromCassandraCompressionOptions(this Dictionary <string, string> value)
 {
     if (value.ContainsKey(cassandraCompressionAlgorithmKeyName))
     {
         var algorithm = value[cassandraCompressionAlgorithmKeyName];
         var options   = new CompressionOptions();
         if (value.ContainsKey("chunk_length_kb"))
         {
             options.ChunkLengthInKb = int.Parse(value["chunk_length_kb"]);
         }
         return(new ColumnFamilyCompression(algorithm, options));
     }
     return(new ColumnFamilyCompression(CompressionAlgorithms.None, null));
 }
 internal ColumnFamilyCompression(string algorithm, CompressionOptions options)
 {
     Algorithm = algorithm;
     Options   = options;
 }
 public static ColumnFamilyCompression Deflate(CompressionOptions options)
 {
     return(new ColumnFamilyCompression(CompressionAlgorithms.Deflate, options));
 }
 public static ColumnFamilyCompression LZ4(CompressionOptions options)
 {
     return(new ColumnFamilyCompression(CompressionAlgorithms.LZ4, options));
 }
 public static ColumnFamilyCompression Snappy(CompressionOptions options)
 {
     return(new ColumnFamilyCompression(CompressionAlgorithms.Snappy, options));
 }